Open E2design opened 6 years ago
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 5dad916e8bc4824a08d2889bfb58e381704858b9
@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 support@craftcms.com?
@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.
<?xml version="1.0" encoding="UTF-8"?>
Three examples attached as zip: SVG FOR CRAFT UPLOAD TEST.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