Re: image crop throws SIGABRT

Bob Friesenhahn <[email protected]> Wed, 21 Jul 2021 17:45:09 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Wed, 21 Jul 2021, Shane Bishop wrote:
>
> This is on Debian 10 with GM "1.4+really1.3.35-1~deb10u1" (the latest
> stable on Debian).
>
> Now, the reason I say "of my own making", is that this image was originally
> a CMYK JPG, and I used Imagick to convert it to sRGB and then to WebP,
> since libwebp (via cwebp) doesn't otherwise tolerate CMYK images.
> At any rate, another image produced with Imagick crops just fine, and has
> no issues whatsoever, so I'm not sure how isolated this problem is.
>
> Any ideas, workarounds, things to try?

The problem is that the webp file contains embedded profiles with a 
size of zero.  These should have been ignored.

As a quick work-around, add

   -strip

or

   +profile '*'

Immediately after reading the WebP file.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt