Photoshop errors

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
krime777
Posts: 1
Joined: 2011-11-09T08:31:43-07:00
Authentication code: 8675308

Photoshop errors

Post by krime777 »

I am resizing some images having clipping paths using convert -resize option.
On some of them (not all, didn't manage to find a pattern) I receive the following errors in photoshop when trying to open them:
"This document contains Adobe Photoshop data which appears to be damaged. Continue and ignore the Photoshop data?"
answering yes, I get
"Could not complete your request because of a problem parsing the path data."
and the image doesn't load.

All images are in jpg format.

Any ideas ?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Photoshop errors

Post by anthony »

Note that clipping paths is image meta data that is only understood by a few operations in IM.
Resize is not one of those operations.

As such when you resized your images, the clipping path was not resized. More than likely Photoshop then sees coordinates in the clipping path that go beyond image bounds, and that make it think the image is corrupt.

Best idea is to remove the profile containing the clipping path from the image.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply