jmtrivial / flatten.js

Transform any svg file into a simplified version by removing all the transformation matrices
MIT License
4 stars 1 forks source link

Linear gradient matrix not touched #2

Open user98765446 opened 3 years ago

user98765446 commented 3 years ago

Interesting tool. I gave the demo a shot with a logo which I have been working on and unfortunately it was 'jumbled' by the app. Also, the linear gradients were not touched, this is what I most want to fix. Of course, I realise the world doesn't revolve around me, but I would be interested in an update should you get round to looking at it.

If you would like a copy of the logo for testing, please let me know.

jmtrivial commented 3 years ago

Dear user98765446,

Thank you for your interest on this tool, that is still into development. I am of course interested in having a copy of this logo for testing. However, not sure I will handle in a short term the gradients. I plan to focus the next development step arround accuracy, to avoid errors during 3D reconstruction with broken shapes.

A short term fix to your needs may be to use a uniform filling of your shapes, then use a boolean operator on a 3D modeler like blender to recreate the gradient, if its shape is not too complicated. Let me know if you want more information about that, and feel free to send me your svg image.

user98765446 commented 3 years ago

Thanks for responding so quickly.

Here is the logo I am working on: logo-progress To deal with these gradient transforms, I have tried:

The methods listed above either broke the illustration or did nothing useful.

I would be interested to know your thoughts on this, when you have the time of course.

Thank you.

jmtrivial commented 3 years ago

Sorry for my first message, I didn't answered correctly to your message. I had in mind another application (svg-to-stl, that do not work with your logo at all).
I've seen with your example the bug you identified. I'll try to fix it in the next weeks. Thank you for that.