Re: image crop throws SIGABRT

Bob Friesenhahn <[email protected]> Wed, 21 Jul 2021 19:43:41 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Wed, 21 Jul 2021, Shane Bishop wrote:

> Oh shoot, I thought I had stripped the profiles after the conversion, how
> were you able to see that? I ran exiftool on the image and it gives no
> information about a color profile on there.

I am not sure.  All I know is that the libwmf APIs used returned a 
zero size for a ICCP color profile even if the APIs were used entirely 
properly.  It says it has one but then reports zero size.

Bob

>
> On Wed, Jul 21, 2021 at 4:45 PM Bob Friesenhahn <
> [email protected]> wrote:
>
>> 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
>>
>>
>> _______________________________________________
>> Graphicsmagick-help mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help
>>
>

-- 
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