Skip to content
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

Request for documentation: how to export SVGs from Adobe Creative Cloud to work with visicut #631

Closed
valkyriesavage opened this issue Jan 6, 2022 · 3 comments

Comments

@valkyriesavage
Copy link

I recently had to upgrade my Illustrator from CS6 to Creative Cloud, but now I can't seem to generate any SVGs that work with Visicut. I've uploaded a screenshot of the dialog that Illustrator offers for this export, as well as the dropdown for CSS style (which I do get a warning is not supported in Visicut).

image
image

The best I can do is use "Style Elements" for the SVG, which renders a black box the size of my drawing
image

All the other options for CSS seem to result in a 0-size drawing with no properties.

I've also attached the SVG and Illustrator file in question.
Archive.zip

I would like to know how to configure this dialog to get SVGs that work in Visicut.

The "Open With Visicut" script for Illustrator does still seem to work, so this isn't urgent. It would still be helpful. :)

@mgmax
Copy link
Collaborator

mgmax commented Jan 6, 2022

It's basically the same issue as with CorelDraw: VisiCut does not support CSS classes, only style attributes.
#339
Here's the closest point in the source code:
https://github.com/t-oster/VisiCut/blob/9e819d34b501d015cc9fe7bc214ca3516db410b7/src/main/java/de/thomas_oster/visicut/model/graphicelements/svgsupport/SVGObject.java
The issue is with the underlying SVGSalamander library, which does not support CSS.
blackears/svgSalamander#75

"Style attributes" or possibly "Presentation attributes" should work. Could you please upload SVGs created using these variants?

You can also have a look at the script file and see what it does.
https://github.com/t-oster/VisiCut/raw/master/tools/illustrator_script/OpenWithVisiCut.scpt
I can't open it because I don't have Illustrator.

@valkyriesavage
Copy link
Author

Iiiiiiiiinteresting, the issue seems to be something else; when I just now reopened visicut with SVGs saved in that manner (attached), they worked fine.
Archive 2.zip

I can't figure out what the error was? (I tried reopening the bugged svg first, then opening those, but it seemed to work fine doing that, as well.)

Ok, at any rate, this works for me. Thanks!

@mgmax
Copy link
Collaborator

mgmax commented Jan 6, 2022

I added the info to use "Style attributes" to the manual. Would be nice if you could have a look - feel free to edit and improve the manual, it definitely needs work.
https://github.com/t-oster/VisiCut/wiki/VisiCut-manual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants