Putting PNG image inside svg/svgz file
Putting PNG image inside svg/svgz file
I noticed that all bitmap files I use when working with Inkscape are not stored in SVG file directly, but staticly linked. As I tend to move files around, it often happens that links break. I know SVG is not bitmap file format, but could it be possible to put those PNG somehow in it? SVGZ maybe?
Re: Putting PNG image inside svg/svgz file
Quote from the Inkscape Guide
By default bitmap images are not stored inside the Inkscape SVG file. Only references are stored. If you move your bitmap files, the references will be broken. You can embed the images inside the SVG file by using the Embed Images effect. See the section called “Embed All Images” in Chapter 19, Effects .
Re: Putting PNG image inside svg/svgz file
To clarify this a bit... Effects->Images->Embed All Images...
Re: Putting PNG image inside svg/svgz file
It's also relatively easy to replace the image location in a text editor or using Inkscape's own xml editor.
Re: Putting PNG image inside svg/svgz file
I tend to build folders to include all necessary files for a each project. So far I have always used the XML editor to change the "Absolute PATH" of the image to a "relative PATH" (i.e., it starts with "./") so that the project can be move without loosing the image. Editing the XML is a pain, but a trick I found; is to select the image before editing, so that it is also selected in the XML ( and therefore easy to find).
I wish there was a "user option" that would automatically use relative paths for any included image that shares the same directory path as the "named" or stored svg ( I know that would mean that you have to save your svg file before including an image, but that is easily done).
Eldonb46
I wish there was a "user option" that would automatically use relative paths for any included image that shares the same directory path as the "named" or stored svg ( I know that would mean that you have to save your svg file before including an image, but that is easily done).
Eldonb46