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?
An unknown imaging construct was encountered.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: An unknown imaging construct was encountered.
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.
- 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.
snibgo's IM pages: im.snibgo.com
Re: An unknown imaging construct was encountered.
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).
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.
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).
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).
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: An unknown imaging construct was encountered.
That reads a JPG and write a PNG.input.jpg -bordercolor {1} -border 1x1 -alpha set -fuzz 20% -fill none -floodfill +0+0 {1} -shave 1x1 png32:output.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.
snibgo's IM pages: im.snibgo.com
Re: An unknown imaging construct was encountered.
But it is giving error only in that images which are converted from imagemagick. normal image are working fine
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: An unknown imaging construct was encountered.
I don't understand what you are doing.
Please supply all commands you are using, with all the input files needed to do them.
Please supply all commands you are using, with all the input files needed to do them.
snibgo's IM pages: im.snibgo.com