david_xxxxxx Posted August 14, 2020 Share Posted August 14, 2020 (edited) When I open a SVG in affiny desiger - It lost color. Almost all my svg dowsnt work in designer. This only happens with this program This is the svg https://productividadweb.com/cliente/ventas.svg Windows - ryzen 3900 32gb ram Edited August 14, 2020 by david_xxxxxx Quote Link to comment Share on other sites More sharing options...
Palatino Posted August 14, 2020 Share Posted August 14, 2020 Sometimes helps: https://github.com/RazrFalcon/svgcleaner ventas_cleaned.svg david_xxxxxx 1 Quote Thanks to DeepL. Link to comment Share on other sites More sharing options...
david_xxxxxx Posted August 14, 2020 Author Share Posted August 14, 2020 It works!!!!! Thanks - It works perfect after the clean Quote Link to comment Share on other sites More sharing options...
David in Яuislip Posted August 14, 2020 Share Posted August 14, 2020 I opened it in Photo and it was dreadful. There was no width/ height definition so Photo zoomed in to about 600% and it was very fuzzy. I introduced width="667px" height="667px" so it looked ok but Photo is not my choice of vector image editor Anyway: 3 of the paths didn't have a final Z Photo doesn't cope with class definitions like this <style> .c {fill: none} .c, .d, .g, .h, .i, .l, .o, .p, .s, .t, .u, .v, .w {stroke: #45413c;stroke-linejoin: round;} .c, .d, .g, .h, .i, .o, .p, .s, .t, .u, .v, .w {stroke-linecap: round;} each class needs to be defined individually eg .c {fill: none; stroke: #45413c;stroke-linejoin: round; stroke-linecap: round;} .d {stroke: #45413c;stroke-linejoin: round; stroke-linecap: round;fill: #00dba8} .g {stroke: #45413c;stroke-linejoin: round; stroke-linecap: round;fill: #8cffe4} If you save it from Photo they will be written into inline styles for each element and the <style> definition goes Photo really ought to read css as above since it's perfectly legal even if it chooses not to write it Quote Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.