Re: image crop throws SIGABRT

Shane Bishop <[email protected]> Wed, 21 Jul 2021 17:03:21 -0600
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <CAOSZYLhV40KgwVgZKVjkTP8VJ6ZUC0tMWuL_p+6Svr0+ksvOrg@mail.gmail.com>
--===============6431316717877727556==
Content-Type: multipart/alternative; boundary="000000000000314cc705c7aa2ee8"

--000000000000314cc705c7aa2ee8
Content-Type: text/plain; charset="UTF-8"

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.

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
>

--000000000000314cc705c7aa2ee8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">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.</div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jul 21, 2021=
 at 4:45 PM Bob Friesenhahn &lt;<a href=3D"mailto:[email protected]=
.us">[email protected]</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">On Wed, 21 Jul 2021, Shane Bishop wrote:<b=
r>
&gt;<br>
&gt; This is on Debian 10 with GM &quot;1.4+really1.3.35-1~deb10u1&quot; (t=
he latest<br>
&gt; stable on Debian).<br>
&gt;<br>
&gt; Now, the reason I say &quot;of my own making&quot;, is that this image=
 was originally<br>
&gt; a CMYK JPG, and I used Imagick to convert it to sRGB and then to WebP,=
<br>
&gt; since libwebp (via cwebp) doesn&#39;t otherwise tolerate CMYK images.<=
br>
&gt; At any rate, another image produced with Imagick crops just fine, and =
has<br>
&gt; no issues whatsoever, so I&#39;m not sure how isolated this problem is=
.<br>
&gt;<br>
&gt; Any ideas, workarounds, things to try?<br>
<br>
The problem is that the webp file contains embedded profiles with a <br>
size of zero.=C2=A0 These should have been ignored.<br>
<br>
As a quick work-around, add<br>
<br>
=C2=A0 =C2=A0-strip<br>
<br>
or<br>
<br>
=C2=A0 =C2=A0+profile &#39;*&#39;<br>
<br>
Immediately after reading the WebP file.<br>
<br>
Bob<br>
-- <br>
Bob Friesenhahn<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">bfriesen@=
simple.dallas.tx.us</a>, <a href=3D"http://www.simplesystems.org/users/bfri=
esen/" rel=3D"noreferrer" target=3D"_blank">http://www.simplesystems.org/us=
ers/bfriesen/</a><br>
GraphicsMagick Maintainer,=C2=A0 =C2=A0 <a href=3D"http://www.GraphicsMagic=
k.org/" rel=3D"noreferrer" target=3D"_blank">http://www.GraphicsMagick.org/=
</a><br>
Public Key,=C2=A0 =C2=A0 =C2=A0<a href=3D"http://www.simplesystems.org/user=
s/bfriesen/public-key.txt" rel=3D"noreferrer" target=3D"_blank">http://www.=
simplesystems.org/users/bfriesen/public-key.txt</a><br>
<br>
<br>
_______________________________________________<br>
Graphicsmagick-help mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help=
" rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/=
listinfo/graphicsmagick-help</a><br>
</blockquote></div>

--000000000000314cc705c7aa2ee8--


--===============6431316717877727556==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============6431316717877727556==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help

--===============6431316717877727556==--