pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/57667: graphics/ImageMagick can't convert certain jpegs
>Number: 57667
>Category: pkg
>Synopsis: graphics/ImageMagick can't convert certain jpegs
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 18 06:40:00 +0000 2023
>Originator: Stefan Schaeckeler
>Release: pkgsrc-2023Q3
>Organization:
>Environment:
NetBSD XXX 9.3_STABLE NetBSD 9.3_STABLE (GENERIC) #4: Sat Sep 2 10:58:30 PDT 2023 root@XXX:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
ImageMagick convert from pkgsrc 2023Q3 can't convert jpegs which embed thumbnails. This was reported upstream https://github.com/ImageMagick/ImageMagick/issues/6475 and was resolved with commit https://github.com/ImageMagick/ImageMagick/commit/2366b767cf711753328944f082376bdfd916d8e8.patch (see second last comment in above issue report).
>How-To-Repeat:
$ wget https://user-images.githubusercontent.com/2273262/252267836-6d4d0a89-510d-4fa0-8b73-d96ea8144908.jpg -O input.jpeg
$ convert input.jpeg output.png
convert: Premature end of JPEG file `/tmp/magick-gpycpZ4_Ji8qBEEstI7Ss8gcmhVLcPXU' @ warning/jpeg.c/JPEGWarningHandler/403.
convert: insufficient image data in file `/tmp/magick-gpycpZ4_Ji8qBEEstI7Ss8gcmhVLcPXU' @ error/jpeg.c/ReadProfileData/478.
convert: Improper call to JPEG library in state 201 `/tmp/magick-gpycpZ4_Ji8qBEEstI7Ss8gcmhVLcPXU' @ error/jpeg.c/JPEGErrorHandler/348.
>Fix:
The upstream patch does not apply cleanly. Spent no time on backporting.
My workaround is updating to the next minor version
Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/ImageMagick/Makefile.common,v
retrieving revision 1.273
diff -u -p -r1.273 Makefile.common
--- Makefile.common 6 Jul 2023 09:45:33 -0000 1.273
+++ Makefile.common 18 Oct 2023 05:51:23 -0000
@@ -5,7 +5,7 @@
# Changelog: https://github.com/ImageMagick/Website/blob/main/ChangeLog.md
IM_MAJOR_VER= 7.1.1
-IM_MINOR_VER= 12
+IM_MINOR_VER= 13
IM_MAJOR_LIB_VER= 7
.if (${IM_MINOR_VER} != NONE)
Home |
Main Index |
Thread Index |
Old Index