
On Wed, 7 Sep 2011 13:32:40 -0700 (PDT) Isi <islegmar@...155...> wrote:
Thanks for the reply. I see I must wait until those bugs are solved... o trying to solve them for myself :-)
Isi
~suv-2 wrote:
On 4/9/11 00:29, Isidoro Legido MartÃnez wrote:
I am generating PNG from SVG using the command line (WXPSP2)
inkscape.exe -e <imgFile> <svgFile>
My SVG file looks like
<svg> <defs> <pattern id="myPattern".....>
</pattern> </defs> <path.... style="fill: url(#myPattern);"/> </svg>
When I generate the PNG I get the "Linked Image Not Found". If I open the SVG file with Inkscape I get the same error, but if I replace the http:// by a local path (file:/// because I run the Web server locally), it shows the image.
Which 'http://' exactly? Your excerpt of the SVG source only shows a reference to an internal fragment (pattern source), but no external web linked resources (bitmap images?). Maybe consider sharing the full source or attaching the SVG file instead.
I can not embed the image and the URL is ok. In fact If I generate the PNG using Batik it is working fine.
Is ther any problem using http:// form images? Is there any additional argument I must pass to the command line?
AFAIK Inkscape does not support loading images linked from the web via 'xlink:href="http://"' (in the GUI as well as when used on the command line to export to bitmap) - it only loads bitmap images from the file system (with an absolute link like 'xlink:href="file:///tmp/test.png"' or a relative link (relative to the location of the SVG file) like 'xlink:href="test.png"').
There have been related reports/requests in the bug tracker, e.g.: Bug #171442 "Web-linked images" https://bugs.launchpad.net/inkscape/+bug/171442 Bug #170137 "hyperlinking xlink" https://bugs.launchpad.net/inkscape/+bug/170137 Bug #723627"svg file "Linked image not found", even with image embed" https://bugs.launchpad.net/inkscape/+bug/723627
hth, ~suv
Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Just download the image from the web and then load it into Inkscape from the local copy.