Hi all, relatively new Hype user (since December 2015) using Hype for online advertising with a question about adding SVG code. The issue I’m having is that when I add SVG code generated by Adobe Illustrator CC 2015.3 to a blank Hype element within the inner HTML, the SVG is not visible within Hype but is visible on preview in a browser or even the Hype scenes window (also shows correctly when uploaded to our staging server).
In Illustrator I export as SVG/SVG options/show code then copy the code and paste into a blank rectangle’s inner html as shown here:
If anyone can offer a suggestion to correct this it would be most appreciated - SVG would be preferred over PNG for building animations with small logos or graphic type and right now I’m stuck with just that:confused:
It appears that Illustrator has introduced an issue with pasting SVGs (see this thread). The workaround is to first paste your SVG code into a tool like SVGomg and clean up the code.
Thank you Daniel. When I paste the code from SVGomg into the blank Hype element it is still not visible within Hype, but is visible on previewing with the web browser. I’m trying to avoid drag and drop with SVG’s as our staging serving won’t render those, only SVG code pasted into a Hype elements inner HTML. I’ll keep trying to find a workaround.
Thank you Daniel! While this didn’t solve the issue it shed some light after seeing the file you attached - I’ve only been working with type converted to outlines, not objects. So the visibility in Hype is only an issue when working with type converted to outlines…I’ll dig deeper, but I think it might be a step being missed in Illustrator prior to adding the type-to-outlines into Hype. Thanks again!
This works...but for example
the export with normaal imported svg is 375 kb
and the one with copied the code is 1mb.....
i was hoping that the one with copied code was less than the normal way...or is there an option to make it smaller?
Note that you can use File > Advanced Export in Hype Pro to disable some exported items if disk space is a major concern; a lot of the export will not actually be downloaded.