-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening exported SVGs in Illustrator has a warning, changes appearance #3799
Comments
I tried doing the same thing in Inkscape, and I didn't get any warnings when opening or saving as "Plain SVG", and the saved SVG seems to look unchanged. I tried to save as "Optimized SVG", however, I got this error:
|
some interesting information here (make sure to scroll thru all answers, theres a variety of perspectives) also https://www.reddit.com/r/svg/comments/jr7r20/svg_and_illustrator/ |
@garrettjstevens did you try running it through https://jakearchibald.github.io/svgomg/ before going to Illustrator as suggested in @cmdcolin 's reddit link? It did shrink the sample I tried by half, but the changes it was making didn't say anything about clipping so I have no idea if it helped. It's a JS library (https://github.com/svg/svgo) so one could imagine making a JB plugin that generated Illustrator-happy SVG if it helps. |
meant to link this thread also with my "some interesting information here" comment https://community.adobe.com/t5/illustrator-discussions/clipping-will-be-lost-on-roundtrip-to-tiny/td-p/1203608 the reddit thread is useful also though |
I tried optimizing it with |
the thing with the scale bar is interesting. it may be related to SVG not accepting "rgba" colors (it wants a separate opacity prop) and we are using rgba in the color for the tick marks/scale bar (and that rgba comes from MUI theme palette) |
(browsers and modern svg renderers will probably accept the rgba but some other svg renderers might balk at it) |
some amount of this should be fixed now. tricky to fully fix but reopen if needed |
I generated an SVG using "Export SVG" in the LGV menu. Here's the share link for the session: https://s3.amazonaws.com/jbrowse.org/code/jb2/main/index.html?config=test_data%2Fvolvox%2Fconfig.json&session=share-uRx1o5nNO-&password=acTeT
Here's the exported SVG:
When I open this SVG with Adobe Illustrator 2023, I get this warning:
I then used "Save a copy..." in Illustrator and saved the SVG. I had to make sure to select "Image Location: Embed" while saving because Illustrator by default moves the embedded PNGs to external files. This is the resulting SVG:
It looks like the scale marks on the top and the side are lost, and semitransparent labels in the multi bigwig get made opaque.
The text was updated successfully, but these errors were encountered: