[Marketing] Brochure

Vaclav Petras wenzeslaus at gmail.com
Sun Jul 30 06:21:53 PDT 2017


On Sat, Jul 29, 2017 at 5:10 PM, Jody Garnett <jody.garnett at gmail.com>
wrote:

> I wonder if someone really smart with SVG could pull in the background as
> a reference (so it would not change each time the text and graphics over
> top was changed?
>

That's possible, we can replace the embedded image in the SVG XML by a file
path, i.e. replace something like this:

<image
  xlink:href="data:image/png;base64,iV...
  .../>

by something like this:

<image
  xlink:href="../some.png"
  .../>

If you are using Inkscape, it will let you select between these two when
putting an external image into the document.

The problem is that some programs won't follow these links and simply not
show the image. Inkscape seems to handle some paths well and some not, but
it can handle the absolute paths with file:// and relative paths without
file:// as in the example above. SVG format definition says this can be
IRI, so I suppose it can be anything. An example, although in a different
context shows relative path to a local file.

Vaclav


https://www.w3.org/TR/SVG/struct.html#ImageElement
https://www.w3.org/TR/SVG/types.html#DataTypeIRI
https://www.w3.org/TR/SVG/linking.html#IRIReference
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/marketing/attachments/20170730/0484bab0/attachment-0001.html>


More information about the Marketing mailing list