Hi @ergu0015,
Can you show me the SVG that you’re trying to upload? I’ve not had any issues before with Illustrator files failing but it may be a <use> element issue.
You can either post it here or drop me an email at [email protected] and I’ll take a look at it.
Cheers,
Daryll
Closing due to lack of response. Please comment if you’re still having the issue and I’ll re-open the ticket.
Generally, if you’re trying to convert a bitmap to vector, you’re going to need to trace it and/or auto-trace. However, if you are able the view the image in Finder or Explorer, then the exported SVG is probably valid (just make sure you “Create Outlines” on fonts, if any, else they may not work if the browsers(s) do not have the same font(s) installed on their system that you used.
It sounds to me like you’re having an issue with WordPress blocking SVGs by default. There are plugins like “SVG Support” (https://ww.wp.xz.cn/plugins/svg-support/) that may help. I usually just use an mu-plugin that I found (https://github.com/Lewiscowles1986/WordPressSVGPlugin/blob/master/wp-content/plugins/lc-wp-svg/index.php) that I install on every WordPress project to take care of it. It even worked when Automattic killed SVG MIME types in 4.7. I have zipped it up if you find it convenient (I didn’t write it – the author information is include the plugin if you’re curious): https://f001.backblazeb2.com/file/hendricks/tmp/enable_svg_uploads.php.zip
The code is all there and it’s rather simple + documented – you just copy the file to /mu-uploads, so you can look at it if you are reluctant to use code from an untrusted source (remember that it goes in /mu-plugins and not /plugins because of how it uses output buffering). I would personally try this first as it is an easy experiment – if it works, it is a cheap and effective solution. If it doesn’t work for your issue/needs, you can just delete the file. Always do a backup first! (though this plugin doesn’t touch any site data/filesystem, so it is pretty harmless)
Caveat: I have encountered one or two themes that use SVGs but do not site them correctly, so they look huge. This is rare, but it has happened. Again, if it doesn’t work for you, you can simply delete the file and try something else like the “SVG Support” plugin.
Good luck!
Daniel
EDIT – I can also be contacted if you have questions here: http://daniel.hn/contact
-
This reply was modified 8 years, 10 months ago by
Daniel Hendricks. Reason: Added some more tips
-
This reply was modified 8 years, 10 months ago by
Daniel Hendricks. Reason: Fixed a few typos
-
This reply was modified 8 years, 10 months ago by
Daniel Hendricks. Reason: Added my contact info