Possible bug bad xmp profile

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Possible bug bad xmp profile

Post by fmw42 »

In ImageMagick 6.9.10.49 or 7.0.8.49 and GS 9.25 and libjpeg 90, I am getting a report of a bad xmp profile when converting an AI file to JPG. If I convert to png, I do not get that error. I am not sure if this is an ImageMagick issue or a Ghostscript one.

AI file:
http://www.fmwconcepts.com/misc_tests/GRID2.ai

AI to PNG:

Code: Select all

convert -colorspace sRGB GRID2.ai x.png
identify -verbose x.png
 Properties:
    date:create: 2019-06-15T18:23:32+00:00
    date:modify: 2019-06-15T18:23:32+00:00
    dc:format: application/pdf
    illustrator:StartupProfile: Print
    illustrator:Type: Document
    pdf:HiResBoundingBox: 1984.25x1984.25+0+0
    pdf:Producer: Adobe PDF library 15.00
    pdf:Version: PDF-1.5
    png:bKGD: chunk was found (see Background color, above)
    png:cHRM: chunk was found (see Chromaticity, above)
    png:IHDR.bit-depth-orig: 16
    png:IHDR.bit_depth: 16
    png:IHDR.color-type-orig: 6
    png:IHDR.color_type: 6 (RGBA)
    png:IHDR.interlace_method: 0 (Not interlaced)
    png:IHDR.width,height: 600, 600
    png:pHYs: x_res=300, y_res=300, units=0
    png:sRGB: intent=0 (Perceptual Intent)
    png:text: 22 tEXt/zTXt/iTXt chunks were found
    png:text-encoded profiles: 1 were found
    png:tIME: 2019-06-15T18:23:32Z
    signature: fd20fa25401a8bcf416436361354ba3c63caeee745d518d1a4d3449f794df087
    xmp:CreateDate: 2018-10-09T21:43:31+01:00
    xmp:CreatorTool: Adobe Illustrator CC 22.1 (Macintosh)
    xmp:MetadataDate: 2019-03-16T15:41Z
    xmp:ModifyDate: 2019-03-16T15:41Z
    xmpMM:DerivedFrom: proof:pdf
    xmpMM:DocumentID: xmp.did:8e6968e8-384f-47e3-a995-d2253947f6b3
    xmpMM:InstanceID: uuid:fc11d76e-1147-734c-9ac2-21525b539e37
    xmpMM:OriginalDocumentID: uuid:5D20892493BFDB11914A8590D31508C8
    xmpMM:RenditionClass: proof:pdf
    xmpTPg:HasVisibleOverprint: False
    xmpTPg:HasVisibleTransparency: True
    xmpTPg:MaxPageSize: Centimeters
    xmpTPg:NPages: 1
  Profiles:
    Profile-xmp: 81379 bytes
  Artifacts:
    filename: x.png
    verbose: true
  Tainted: False
  Filesize: 366778B
  Number pixels: 360000
  Pixels per second: 15.8515MB
  User time: 0.020u
  Elapsed time: 0:01.022
  Version: ImageMagick 6.9.10-49 Q16 x86_64 2019-06-08 https://imagemagick.org

AI to JPG:

Code: Select all

convert -colorspace sRGB GRID2.ai x.jpg
identify -verbose x.jpg
 Properties:
    date:create: 2019-06-15T18:22:53+00:00
    date:modify: 2019-06-15T18:22:53+00:00
    jpeg:colorspace: 2
    jpeg:sampling-factor: 1x1,1x1,1x1
    signature: 391be96a8cdb71abfea509c6c60ece6932c215b5a6da14704ae07cb12b944121
  Profiles:
    Profile-app1: 15875 bytes
  Artifacts:
    filename: x.jpg
    verbose: true
  Tainted: False
  Filesize: 184368B
  Number pixels: 360000
  Pixels per second: 36.5189MB
  User time: 0.000u
  Elapsed time: 0:01.009
  Version: ImageMagick 6.9.10-49 Q16 x86_64 2019-06-08 https://imagemagick.org
identify: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1757.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Possible bug bad xmp profile

Post by magick »

Unfortunately, we cannot reproduce the problem. Try with the latest Beta release of IMv7 -50. Post the exception so we know which line exports the warning. Also post the output of `convert --version`.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possible bug bad xmp profile

Post by fmw42 »

OK. Using IM 7.0.8.50 beta on Mac OSX Sierra, I get

Code: Select all

magick -verbose -colorspace sRGB GRID2.ai x.jpg
/tmp/magick-26349PRQ1Mad413F51 PNG 1984x1984 1984x1984+0+0 8-bit sRGB 175889B 0.560u 0:00.166
GRID2.ai AI 1984x1984 1984x1984+0+0 16-bit sRGB 175889B 0.360u 0:00.101
[ghostscript library 9.25] -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72'  '-sOutputFile=/tmp/magick-26349PRQ1Mad413F5%d' '-f/tmp/magick-26349FCBK2mwR3fSj' '-f/tmp/magick-26349U1G_sLBc2Fbo'GRID2.ai=>x.jpg AI 1984x1984 1984x1984+0+0 16-bit sRGB 569549B 0.180u 0:00.180

Code: Select all

magick identify -verbose x.jpg
identify: CorruptImageProfile `xmp' @ warning/profile.c/SetImageProfileInternal/1772.


Perhaps you could test on your Mac.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Possible bug bad xmp profile

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possible bug bad xmp profile

Post by fmw42 »

Thanks. This appears to be fixed in IM 7.0.8.50 proper.
Post Reply