An unknown imaging construct was encountered.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
kailash
Posts: 4
Joined: 2016-07-11T05:18:26-07:00
Authentication code: 1151

An unknown imaging construct was encountered.

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: An unknown imaging construct was encountered.

Post 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.
snibgo's IM pages: im.snibgo.com
kailash
Posts: 4
Joined: 2016-07-11T05:18:26-07:00
Authentication code: 1151

Re: An unknown imaging construct was encountered.

Post 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).
kailash
Posts: 4
Joined: 2016-07-11T05:18:26-07:00
Authentication code: 1151

Re: An unknown imaging construct was encountered.

Post 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).
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: An unknown imaging construct was encountered.

Post 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.
snibgo's IM pages: im.snibgo.com
kailash
Posts: 4
Joined: 2016-07-11T05:18:26-07:00
Authentication code: 1151

Re: An unknown imaging construct was encountered.

Post by kailash »

But it is giving error only in that images which are converted from imagemagick. normal image are working fine
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: An unknown imaging construct was encountered.

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply