Is there some way to embed bitmaps in SVG? I was looking at a file I made with a bitmap in it and noticed that the absolute path to the image was hardcoded into the .svg, making this svg useless on any machine but my own.
So is there some way to embed bitmap pixel data in SVG? Does the standard even allow that?
Aside from that is there some way to get Inkscape to copy linked images to be side-by-side with the svg and use relative paths rather than absolute paths?
Does the w3c have some sort of .jar-like standard for creating svg bundles that include both a main svg and associated bitmaps and other linked content all-in-one? That seems like it would be the ideal solution.
--bb
On Sat, Apr 14, 2007 at 03:51:56AM +0900, Bill Baxter wrote:
Is there some way to embed bitmaps in SVG? I was looking at a file I made with a bitmap in it and noticed that the absolute path to the image was hardcoded into the .svg, making this svg useless on any machine but my own.
So is there some way to embed bitmap pixel data in SVG? Does the standard even allow that?
Yup, see Effects > Images
Aside from that is there some way to get Inkscape to copy linked images to be side-by-side with the svg and use relative paths rather than absolute paths?
Not easily afaik.
Does the w3c have some sort of .jar-like standard for creating svg bundles that include both a main svg and associated bitmaps and other linked content all-in-one? That seems like it would be the ideal solution.
Not that I know of, but note there's an 'inkjar' functionality buried in Inkscape itself for handling jar-based file collections. I believe this works pretty well, it's just poorly advertised. If you're interested in working on this, it could probably benefit from gaining better exposure in the File menu UI.
Bryce
On Apr 13, 2007, at 12:10 PM, Bryce Harrington wrote:
Aside from that is there some way to get Inkscape to copy linked images to be side-by-side with the svg and use relative paths rather than absolute paths?
Not easily afaik.
Sounds like time for an RFE.
It's also some general functionality that we probably could use for palettes, stylesheets, ICC profiles, etc. So it would be good to have such "manage assets" support in common.
On Apr 13, 2007, at 12:10 PM, Bryce Harrington wrote:
Does the w3c have some sort of .jar-like standard for creating svg bundles that include both a main svg and associated bitmaps and other linked content all-in-one? That seems like it would be the ideal solution.
Not that I know of, but note there's an 'inkjar' functionality buried in Inkscape itself for handling jar-based file collections. I believe this works pretty well, it's just poorly advertised. If you're interested in working on this, it could probably benefit from gaining better exposure in the File menu UI.
There is also the potential to use XOP packaging. It basically wraps the whole set up as a multipart MIME message style file.
[ 1119540 ] XML-binary Optimized Packaging (XOP) support http://sourceforge.net/tracker/index.php? func=detail&aid=1119540&group_id=93438&atid=604309
Bulia has expressed reservations about the usefulness of such packaging.
I think the main problem is that although the W3C has XOP up, no SVG viewer implementors have adopted it.
Bryce Harrington escribió:
Does the w3c have some sort of .jar-like standard for creating svg bundles that include both a main svg and associated bitmaps and other linked content all-in-one? That seems like it would be the ideal solution.
Not that I know of, but note there's an 'inkjar' functionality buried in Inkscape itself for handling jar-based file collections. I believe this works pretty well, it's just poorly advertised. If you're interested in working on this, it could probably benefit from gaining better exposure in the File menu UI.
Bryce
You make this to sound very similar to an OASIS-like file for SVGs... Which now that I think of it, would be very beneficial, plus portable, as even other viewers could actually see the linked content. It could also be a very bad idea, though...
On 4/13/07, Bryce Harrington <bryce@...983...> wrote:
On Sat, Apr 14, 2007 at 03:51:56AM +0900, Bill Baxter wrote:
Is there some way to embed bitmaps in SVG? I was looking at a file I made with a bitmap in it and noticed that the absolute path to the image was hardcoded into the .svg, making this svg useless on any machine but my own.
So is there some way to embed bitmap pixel data in SVG? Does the standard even allow that?
Yup, see Effects > Images
Aside from that is there some way to get Inkscape to copy linked images to be side-by-side with the svg and use relative paths rather than absolute paths?
Not easily afaik.
Ummm, file>save as> type "Compressed Inkscape SVG with Media" Although it seems to be broken in my SVN copy on win, perhaps needs some TLC.
Does the w3c have some sort of .jar-like standard for creating svg bundles that include both a main svg and associated bitmaps and other linked content all-in-one? That seems like it would be the ideal solution.
Not that I know of, but note there's an 'inkjar' functionality buried in Inkscape itself for handling jar-based file collections. I believe this works pretty well, it's just poorly advertised. If you're interested in working on this, it could probably benefit from gaining better exposure in the File menu UI.
Bryce
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D... _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
On 2007-April-13 , at 21:56 , john cliff wrote:
On 4/13/07, Bryce Harrington <bryce@...983...> wrote:
On Sat, Apr 14, 2007 at 03:51:56AM +0900, Bill Baxter wrote:
Is there some way to embed bitmaps in SVG? [...] Aside from that is there some way to get Inkscape to copy linked images to be side-by-side with the svg and use relative paths rather than absolute paths?
Not easily afaik.
Ummm, file>save as> type "Compressed Inkscape SVG with Media" Although it seems to be broken in my SVN copy on win, perhaps needs some TLC.
Does the w3c have some sort of .jar-like standard for creating svg bundles that include both a main svg and associated bitmaps and other linked content all-in-one? That seems like it would be the ideal solution.
Not that I know of, but note there's an 'inkjar' functionality buried in Inkscape itself for handling jar-based file collections. I believe this works pretty well, it's just poorly advertised. If you're interested in working on this, it could probably benefit from gaining better exposure in the File menu UI.
So that you can get the big picture, there was a very complete discussion about it on the devel list a while back: http://sourceforge.net/mailarchive/message.php?msg_id=PM. 2082.1137873675%40pmweb6.uk1.bibliotech.net and some bits when discussing summer of code of last year: http://sourceforge.net/mailarchive/message.php?msg_id=3CDB9B0D- D2BB-46C4-A385-F5B6DDD08562%40joncruz.org These discussion were interesting, passionate some times, personally it made me change my mind two or three times ... but did not result in much change in Inkscape unfortunately. If you have time for it by any chance, I, for one, would be really happy to see this implemented! IMHO, the obvious but already very useful first step would be to add the possibility to embed imported bitmaps right from the import menu and to add a check mark there which retains its previous state (kind of like a general preference but without clutering the preference window).
JiHO --- http://jo.irisson.free.fr/
On 4/13/07, Bill Baxter <wbaxter@...155...> wrote:
Aside from that is there some way to get Inkscape to copy linked images to be side-by-side with the svg and use relative paths rather than absolute paths?
Copy, no. Use relative, yes. It always uses relative paths in xlink:href for images that are in the same dir or below (sodipodi:absref is just a fallback).
bulia byak wrote:
Copy, no. Use relative, yes. It always uses relative paths in xlink:href for images that are in the same dir or below (sodipodi:absref is just a fallback).
That's right I checked and the "sodipodi:absref" attribute value is an absolute path when the "xlink:href" one is relative.
However is there a way to disable (remove) the "sodipodi:absref" attributes to clean-up SVG files from their absolute paths ? I think it's not secure to share such files, specially when files are stored on a user directory. A few months ago I was about to share a SVG file to illustrate a tutorial and decided not to when I saw the file was full of absolute paths.
On 5/16/07, Jean-Marc Molina <jmmolina@...206...> wrote:
bulia byak wrote:
Copy, no. Use relative, yes. It always uses relative paths in xlink:href for images that are in the same dir or below (sodipodi:absref is just a fallback).
That's right I checked and the "sodipodi:absref" attribute value is an absolute path when the "xlink:href" one is relative.
However is there a way to disable (remove) the "sodipodi:absref" attributes to clean-up SVG files from their absolute paths ? I think it's not secure to share such files, specially when files are stored on a user directory. A few months ago I was about to share a SVG file to illustrate a tutorial and decided not to when I saw the file was full of absolute paths.
You can save as plain SVG. But that disables all the inkscape-specific tags, not just the sodipodi:absref ones.
--bb
participants (8)
-
Bill Baxter
-
Bryce Harrington
-
bulia byak
-
Gian Paolo Mureddu
-
Jean-Marc Molina
-
jiho
-
john cliff
-
Jon A. Cruz