Hoi all,
I'm using an inkscape svg in a web application, but things seem to go wrong in Chrome. For some reason the png included in the svg doesn't show. When you then open the svg direcly, things seem fine... strangely enough, when you then go back to the html-page which has the svg in an <img> tag, the png shows!
I've set up a test at http://www.develicious.nl/svgtest/testsvg.html
Inkscape svg with png inside doesn't show png in Chrome
Re: Inkscape svg with png inside doesn't show png in Chrome
Hi. You're right. It doesn't work with Chrome. Tested it.
However it works just fine with Firefox. So that means that it is an issue concerning only Chrome.
However it works just fine with Firefox. So that means that it is an issue concerning only Chrome.

Re: Inkscape svg with png inside doesn't show png in Chrome
Hoi Grobe,
How about just linking the png rather than embedding it. If it then works it is a encoding bug in Chrome. Linking is better practice anyway for webdesign.
Cheers..
Jelle
How about just linking the png rather than embedding it. If it then works it is a encoding bug in Chrome. Linking is better practice anyway for webdesign.
Cheers..
Jelle
Re: Inkscape svg with png inside doesn't show png in Chrome
But with linking, don't you have to keep the imported images together with the SVG?
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Inkscape svg with png inside doesn't show png in Chrome
brynn wrote:But with linking, don't you have to keep the imported images together with the SVG?
If you by "together with" mean in same folder, it's the oposite way.

Re: Inkscape svg with png inside doesn't show png in Chrome
Are you sure? I know that I've used linking in the past, and later moved the imported image to another folder. But then it won't show up in the Inksape file.
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Inkscape svg with png inside doesn't show png in Chrome
Yes that is correct. The absolute path to a file will change when the file is moved or renamed, so then you need to change the reference in the svg file too.brynn wrote:Are you sure? I know that I've used linking in the past, and later moved the imported image to another folder. But then it won't show up in the Inksape file.
