Page 1 of 1

Large XMP:DocumentAncestors: convert/identify app crash

Posted: 2015-04-21T04:55:03-07:00
by krikke
I'm trying to convert a rather large PSD file to jpg.

Not using any fancy attributes just

Code: Select all

convert.exe "psdsource" "jpgdestination"
The PSD file opens just fine in Adobe Photoshop but it crashes the "convert" & "identify" executable upon converting/identifying.
I started investigating the metadata using exiftool. It seems this PSD file contains a lot of data in the "XMP:DocumentAncestors" tag. (see warning exiftool)

Code: Select all

Warning : [Minor] Excessive number of items for photoshop:DocumentAncestors. Extracted only the first 1000.
ex. XMP:DocumentAncestors data:

Code: Select all

0, 37601C489066AEE4DA394F67D5FF3E21, 378FF53A78BB829717A984EA40531873, 379FC2A07
5CED6CB1641B64836C85D77, 37B045E65BC157EBB9E38658C99E97AF, 37BEB1A341DF55FE84320
A5755C59DDE, 37C26AD1835682ABF20D0FDD61A5833E, 37E22BAB72BA00E0FA41A56CDC508D18,
 37E287AB58F663720E0390E44DD2FA67, 37EE2D49528EAA227F061166266D291A, 37F553D0014
8B5EE2D78B04195C5BABF, 37F90674878BA67725F01ED0411387E2, 37FF7E4039D9DB4CF32A6F8
1A6FEC1D3, 380A19086BF0056840E27D9DA1386AF7, 381D6B58E407760361C8A038129ED0FD, 3
839608F3AB6D3E1C976FD2736C36F98, 38492EB34488D02B8611F44AF5E117B6, 384A65FE25C06
D366819AD3CE5CCE71E, 384EFAFBCDA8989F6320C72CBB83AE0A, 38566D244F797D8B168AEAD76
472B392, 385C73CE4F6422D181B281CB9569F260, 386083498DBE1B90577CE6F67F7EA7B2, 386
4E567A496CBF1431499AABAD679C9, 3883C9504222F81CD007611A4BB1170D, 3891EF6E47E3266
07D4C9F6E62B45BD6, 38966068E154B2DA52EF7F972DBAAB4C, 38C73D791F40C8D6C0845394FE1
8AF66
If I strip this metadata field from the PSD file the conversion succeeds else it crashes the convert.exe/identify.exe application.

Best Regards,
Kristof

Re: Large XMP:DocumentAncestors: convert/identify app crash

Posted: 2015-04-21T04:57:15-07:00
by magick
Post a URL to an example PSD image. We need to download it and reproduce the problem before we can provide a fix.

Re: Large XMP:DocumentAncestors: convert/identify app crash

Posted: 2015-04-21T05:02:39-07:00
by krikke
I have sent you a PM with the download url.

Best Regards,
Kristof

Re: Large XMP:DocumentAncestors: convert/identify app crash

Posted: 2015-04-21T05:16:48-07:00
by magick
Your sample image convert without complaint under Linux and ImageMagick 6.9.1-2, the latest release. We will try under Windows later today and report back.

Re: Large XMP:DocumentAncestors: convert/identify app crash

Posted: 2015-04-21T05:18:51-07:00
by krikke
I'm using windows v. ImageMagick-6.8.7-Q16

Re: Large XMP:DocumentAncestors: convert/identify app crash

Posted: 2015-04-21T05:25:51-07:00
by magick
Try ImageMagick 6.9.1. There is a mention of a large XMP problem in the ChangeLog since 6.8.7. Its likely the patch fixes the problem you are having.

Re: Large XMP:DocumentAncestors: convert/identify app crash

Posted: 2015-04-21T05:35:32-07:00
by krikke
I can confirm that the issue is fixed with ImageMagick-6.9.1-2 (portable win version)

Thanks for the quick response.