[Solved] Problem converting AI file - dots appear in corner

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
AKH
Posts: 3
Joined: 2019-11-08T06:41:41-07:00
Authentication code: 1152

[Solved] Problem converting AI file - dots appear in corner

Post by AKH » 2019-11-08T07:01:38-07:00

Hi

I'm attempting to convert a multi-layered AI file (which is based on a template) using IM 7.0.8-Q16 and Ghostscript 9.50.

If i do a simple conversion to JPG, PNG or PDF (magick convert target.ai output.jpg), dots appear in the bottom-left corner on some of the layers.
I have many AI files based on the same template file, but enriched with unique content each, and it happens to ~40 % of the files currently.

Does anybody have an idea why this happens and how i can fix it? There is no data in the AI file in that area.
If i Export the AI file to JPG using Adobe Illustrator, the dots doesn't appear.

Snip from AI file:
Image
Snip from converted JPG file
Image
Last edited by AKH on 2019-11-12T03:44:49-07:00, edited 1 time in total.

snibgo
Posts: 12299
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem converting AI file - dots appear in corner

Post by snibgo » 2019-11-08T07:47:13-07:00

IM delegates rasterizing of AI files to Ghostscript. "-verbose" will show you the GS command. I suspect the dots come out of GS, rather than being created by IM.

If you run the GS command standalone, do the dots appear?

If you use an older version of GS, v9.25 or earlier, do the dots appear?
snibgo's IM pages: im.snibgo.com

AKH
Posts: 3
Joined: 2019-11-08T06:41:41-07:00
Authentication code: 1152

Re: Problem converting AI file - dots appear in corner

Post by AKH » 2019-11-11T02:43:00-07:00

Thanks for the reply

This is the output I get with verbose

Code: Select all

magick convert -verbose s_s_1154SS20.ai s_s_1154SS20.jpg
[ghostscript library 9.50] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dUseCIEColor  "-sOutputFile=snip/magick-11008N7Iaucl74t4q%d" "-fsnip/Temp/magick-110082VVWZBAhGr4N" "-fsnip/magick-11008NqLPR2IVdJa0"snip/magick-11008N7Iaucl74t4q1 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.016u 0:00.003
snip/magick-11008N7Iaucl74t4q2 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.000u 0:00.005
snip/magick-11008N7Iaucl74t4q3 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.016u 0:00.003
snip/magick-11008N7Iaucl74t4q4 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.000u 0:00.002
snip/magick-11008N7Iaucl74t4q5 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.016u 0:00.002
snip/magick-11008N7Iaucl74t4q6 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.000u 0:00.003
snip/magick-11008N7Iaucl74t4q7 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.000u 0:00.002
snip/magick-11008N7Iaucl74t4q8 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.000u 0:00.002
snip/magick-11008N7Iaucl74t4q9 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.000u 0:00.003
snip/magick-11008N7Iaucl74t4q10 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.000u 0:00.002
snip/magick-11008N7Iaucl74t4q11 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.000u 0:00.002
snip/magick-11008N7Iaucl74t4q12 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.016u 0:00.002
snip/magick-11008N7Iaucl74t4q13 PAM 595x842 595x842+0+0 8-bit ColorSeparation CMYK 1.91122MiB 0.000u 0:00.003
s_s_1154SS20.ai[0] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.219u 0:00.237
s_s_1154SS20.ai[1] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.203u 0:00.218
s_s_1154SS20.ai[2] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.188u 0:00.209
s_s_1154SS20.ai[3] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.188u 0:00.204
s_s_1154SS20.ai[4] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.172u 0:00.200
s_s_1154SS20.ai[5] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.172u 0:00.194
s_s_1154SS20.ai[6] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.172u 0:00.189
s_s_1154SS20.ai[7] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.172u 0:00.184
s_s_1154SS20.ai[8] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.172u 0:00.180
s_s_1154SS20.ai[9] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.156u 0:00.176
s_s_1154SS20.ai[10] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.156u 0:00.171
s_s_1154SS20.ai[11] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.141u 0:00.165
s_s_1154SS20.ai[12] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.141u 0:00.159
s_s_1154SS20.ai=>s_s_1154SS20-0.jpg[0] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 70602B 0.031u 0:00.155
s_s_1154SS20.ai=>s_s_1154SS20-1.jpg[1] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 116303B 0.047u 0:00.171
s_s_1154SS20.ai=>s_s_1154SS20-2.jpg[2] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 43774B 0.063u 0:00.182
s_s_1154SS20.ai=>s_s_1154SS20-3.jpg[3] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 43774B 0.078u 0:00.193
s_s_1154SS20.ai=>s_s_1154SS20-4.jpg[4] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 43774B 0.078u 0:00.204
s_s_1154SS20.ai=>s_s_1154SS20-5.jpg[5] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 110445B 0.078u 0:00.218
s_s_1154SS20.ai=>s_s_1154SS20-6.jpg[6] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 43774B 0.078u 0:00.229
s_s_1154SS20.ai=>s_s_1154SS20-7.jpg[7] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 43774B 0.078u 0:00.240
s_s_1154SS20.ai=>s_s_1154SS20-8.jpg[8] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 43774B 0.094u 0:00.251
s_s_1154SS20.ai=>s_s_1154SS20-9.jpg[9] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 43774B 0.109u 0:00.262
s_s_1154SS20.ai=>s_s_1154SS20-10.jpg[10] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 43774B 0.125u 0:00.274
s_s_1154SS20.ai=>s_s_1154SS20-11.jpg[11] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 43774B 0.141u 0:00.286
s_s_1154SS20.ai=>s_s_1154SS20-12.jpg[12] AI 595x842 595x842+0+0 16-bit ColorSeparation CMYK 128714B 0.156u 0:00.299
The added dot appears on layer 4.

Added dots appears both with GS 9.25, 9.27 and 9.50

This is what it looks like when i drop the AI file into GS.
Image
Last edited by AKH on 2019-11-11T03:14:13-07:00, edited 1 time in total.

snibgo
Posts: 12299
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem converting AI file - dots appear in corner

Post by snibgo » 2019-11-11T06:11:41-07:00

AKH wrote:There is no data in the AI file in that area.
How do you know this? I suspect there is data in that area in the AI file. It may be transparent, so not normally visible.
snibgo's IM pages: im.snibgo.com

AKH
Posts: 3
Joined: 2019-11-08T06:41:41-07:00
Authentication code: 1152

Re: Problem converting AI file - dots appear in corner

Post by AKH » 2019-11-12T03:42:43-07:00

snibgo wrote:
2019-11-11T06:11:41-07:00
AKH wrote:There is no data in the AI file in that area.
How do you know this? I suspect there is data in that area in the AI file. It may be transparent, so not normally visible.
We replicated the issue in 3 different viewers, which almost confirmed that the issues are not related to IM or GS.

After further investigation we found a hidden symbol (not transparent, or hidden in layers, but with objects stacked on top) in the middle of one of the pages, which somehow ended up in the corner of the output.
It's still a puzzle how it ends up in the corner, but after deleting the symbol the issue does no longer persist.

Please resolve - this was never a IM/GS bug. Thanks for the help.

Post Reply