Page 1 of 1

An unknown imaging construct was encountered.

Posted: 2016-07-11T05:25:50-07:00
by kailash
Hello,
I am using imagemagick converted image in svg file and then convert svg to pdf using inkscape.
I am getting error "An unknown imaging construct was encountered." while opeing the pdf file in Adobe illustrator.
If I am using normal image(without converted from imagemagick) then its working fine.

can anybody help me regarding this?
Is there any matadata information added in image while converting?

Re: An unknown imaging construct was encountered.

Posted: 2016-07-11T05:34:08-07:00
by snibgo
It would help if you:
- Say what version of IM and Ghostscript you are using.
- Say what IM command you used.
- Say what delegate is rasterising the SVG.
- Link to or paste your SVG.

Re: An unknown imaging construct was encountered.

Posted: 2016-07-11T05:44:42-07:00
by kailash
imagemagick =ImageMagick-6.9.1-Q16-HDRI
command=input.jpg -bordercolor {1} -border 1x1 -alpha set -fuzz 20% -fill none -floodfill +0+0 {1} -shave 1x1 png32:output.png

svg file:
=============================================================
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="202" height="247" x="35.94915254237288" y="13.010169491525422" xml:space="preserve">
<g transform="translate(101 123.5)">
<image xlink:href="file:///D:/input.jpg" x="-101" y="-123.5" style="stroke: none; stroke-width: 1; stroke-dasharray: ; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" width="202" height="247" preserveAspectRatio="none"></image>
</g>
<g transform="translate(500 500)">
<image xlink:href="file:///D:/output.jpg" x="-101" y="-123.5" style="stroke: none; stroke-width: 1; stroke-dasharray: ; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" width="202" height="247" preserveAspectRatio="none"></image>
</g>
</svg>
=============================================================================================================
using inkscape(0.91) for converting svg to pdf.
After conversion when we are opening file in Adobe illustrator then its giving error <b>An unknown imaging construct was encountered.</b> for converted image(output.png).

Re: An unknown imaging construct was encountered.

Posted: 2016-07-11T05:45:12-07:00
by kailash
imagemagick =ImageMagick-6.9.1-Q16-HDRI
command=input.jpg -bordercolor {1} -border 1x1 -alpha set -fuzz 20% -fill none -floodfill +0+0 {1} -shave 1x1 png32:output.png

svg file:
=============================================================
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="202" height="247" x="35.94915254237288" y="13.010169491525422" xml:space="preserve">
<g transform="translate(101 123.5)">
<image xlink:href="file:///D:/input.jpg" x="-101" y="-123.5" style="stroke: none; stroke-width: 1; stroke-dasharray: ; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" width="202" height="247" preserveAspectRatio="none"></image>
</g>
<g transform="translate(500 500)">
<image xlink:href="file:///D:/output.jpg" x="-101" y="-123.5" style="stroke: none; stroke-width: 1; stroke-dasharray: ; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" width="202" height="247" preserveAspectRatio="none"></image>
</g>
</svg>
=============================================================================================================
using inkscape(0.91) for converting svg to pdf.
After conversion when we are opening file in Adobe illustrator then its giving error <b>An unknown imaging construct was encountered.</b> for converted image(output.png).

Re: An unknown imaging construct was encountered.

Posted: 2016-07-11T05:57:12-07:00
by snibgo
input.jpg -bordercolor {1} -border 1x1 -alpha set -fuzz 20% -fill none -floodfill +0+0 {1} -shave 1x1 png32:output.png
That reads a JPG and write a PNG.

But you say you are reading a SVG and writing a PDF.

If you are using Inkscape to convert from SVG to PDF, without using ImageMagick, and the PDF is bad, I suggest you raise that on an Inkscape forum.

Re: An unknown imaging construct was encountered.

Posted: 2016-07-11T06:01:17-07:00
by kailash
But it is giving error only in that images which are converted from imagemagick. normal image are working fine

Re: An unknown imaging construct was encountered.

Posted: 2016-07-11T06:28:25-07:00
by snibgo
I don't understand what you are doing.

Please supply all commands you are using, with all the input files needed to do them.