{"id":492,"date":"2008-08-27T15:13:50","date_gmt":"2008-08-27T20:13:50","guid":{"rendered":"http:\/\/blog.codedread.com\/archives\/2008\/08\/27\/inkscape-bug-with-embedded-rasters\/"},"modified":"2008-08-27T15:13:50","modified_gmt":"2008-08-27T20:13:50","slug":"inkscape-bug-with-embedded-rasters","status":"publish","type":"post","link":"https:\/\/www.codedread.com\/blog\/archives\/2008\/08\/27\/inkscape-bug-with-embedded-rasters\/","title":{"rendered":"Inkscape Bug with Embedded Rasters"},"content":{"rendered":"<p><object type=\"image\/svg+xml\" width=\"100\" height=\"100\" align=\"right\" hspace=\"10\" data=\"http:\/\/codedread.com\/clipart\/inkscape.svgz\"><span\/><\/object>Imagine for a moment:<\/p>\n<ol>\n<li>Joe User knows nothing about the <a href=\"http:\/\/www.w3.org\/Graphics\/SVG\" title=\"Scalable Vector Graphics\">SVG<\/a> format other than it's an image format.<\/li>\n<li>Starts a new document in <a href=\"http:\/\/inkscape.org\/\" title=\"Inkscape Vector Graphics Editor\">Inkscape<\/a><\/li>\n<li>Imports a raster image (PNG) from the hard drive<\/li>\n<li>Saves image as SVG<\/li>\n<li>Uploads the SVG file to a <a href=\"http:\/\/openclipart.org\/\" title=\"Open Clip Art Library\">clip art<\/a> website<\/li>\n<li>Is baffled why the <a href=\"http:\/\/www.w3.org\/TR\/SVG11\/struct.html#ImageElement\" title=\"svg:image element\">image<\/a> displays fine on his computer in the browser but is blank for everyone else<\/li>\n<\/ol>\n<p><a href=\"http:\/\/openclipart.org\/people\/blasphemy\/blasphemy_target_earth.svg\">Yes<\/a> <a href=\"http:\/\/openclipart.org\/people\/blasphemy\/blasphemy_shy_bunny.svg\">this<\/a> <a href=\"http:\/\/openclipart.org\/people\/blasphemy\/blasphemy_angry_bunny.svg\">could<\/a> <a href=\"http:\/\/openclipart.org\/people\/blasphemy\/blasphemy_banana.svg\">really<\/a> <a href=\"http:\/\/openclipart.org\/people\/blasphemy\/blasphemy_apple_with_a_hole.svg\">happen<\/a>.  So how do we fix it?<\/p>\n<ul>\n<li>Warn during Import stage of local references?<\/li>\n<li>Warn during Save stage of local references?<\/li>\n<li>Embed raster as a <a href=\"http:\/\/tools.ietf.org\/html\/rfc2397\">data: url<\/a> in the SVG source (breaking link with local file)?<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Imagine for a moment: Joe User knows nothing about the SVG format other than it&#8217;s an image format. Starts a new document in Inkscape Imports a raster image (PNG) from the hard drive Saves image as SVG Uploads the SVG file to a clip art website Is baffled why the image displays fine on his [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,46,11,28],"tags":[103,198],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-software","category-svg","category-technology","category-web","tag-inkscape","tag-svg"],"_links":{"self":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":0,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}