-
Notifications
You must be signed in to change notification settings - Fork 641
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
SVG image upload in general settings causing error #2181
Comments
Having this issue too after updating from beta-29 to RC1 I could upload them after opening and saving the files with Sketch |
Thanks, fixed for the next release. |
I'm getting the same error message when uploading SVG files to a local assets folder. Files were exported out of Illustrator CC and then processed with SVGO. Exporting using Sketch resolves the issue though. Tested in the lasted version 5dad916 |
@johandouma can you share the SVG file? |
This still appears to be an issue with Craft 3.0.4 release. I was able to resave/export SVG via Sketch and then it will upload. |
@wihodges can you share the SVG file that was causing issues (pre-Sketch-export)? If not here, can you send it to [email protected]? |
@brandonkelly just did a full test, created a new simple svg icon in illustrator, and tried to upload. Same error. I also ran this SVG in SVGO-GUI, which strips most everything out, still does not upload. I then opened the same SVG in Sketch and exported, and that version works. Quite strange b/c the minimized one from SVGO is about as code reduced as can be. The sketch svg output adds an XML tag to the top. Interestingly if you slap the XML type to the top of the file, it successfully uploads to craft.
Three examples attached as zip: |
Description
Uploading an .svg image (image attached) in general settings causing a exception error. This tend to happen with images exported by Adobe Illustrator version (AI CC 22.0.1). Some other .svg images are accepted though.
Question?: How can I remove the image from the DB as I'm not able tot enter the general settings anymore
Steps to reproduce
Stack Trace
Image
Asset 1.svg.zip
Additional info
The text was updated successfully, but these errors were encountered: