public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ulf-Dietrich Braumann <braumann@uni-leipzig.de>
To: cygwin@cygwin.com
Subject: ImageMagick 7.0.10-27 crashes when handling jp2
Date: Wed, 14 Sep 2022 16:31:28 +0200	[thread overview]
Message-ID: <nycvar.JAG.7.77.849.2209141557001.13592@SVMV-YR-062.vmv.senhaubsre.qr> (raw)

Hi,

I have noticed that my ImageMagick (installed via the Net Release Setup 
Program version 2.919 from an official download site) reproducibly 
crashes when generating or converting or displaying or comparing or 
identifying any JPEG-2000 files:

$magick input.png output_magick.jp2
Abort (core dumped)

I instead have used OpenJPEG 2.1.1 (own build):

$opj_compress -i input.png -o output_openjpeg.jp2

That cannot be displayed:

$display output_openjpeg.jp2
Abort (core dumped)

It also cannot be compared:

$compare -metric ssim output_openjpeg.jp2 input.png null:
Abort (core dumped)

$convert output_openjpeg.jp2 output.png
Abort (core dumped)

$identify output_openjpeg.jp2
Abort (core dumped)

However, I am sure that the file output_openjpeg.jp2 is a valid JPEG-2000 
file, as e.g. XnView has no problem to display it.

Here the version information:

$magick -version
Version: ImageMagick 7.0.10-27 Q16 x86_64 2021-02-07 
https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP(4.5)
Delegates (built-in): bzlib cairo djvu fftw fontconfig fpx freetype gslib gvc jbig jng jp2 jpeg lcms lqr lzma pangocairo png ps raqm raw rsvg tiff webp x xml zlib

Can anybody check if ImageMagick behaves similarly odd handling 
JPEG-2000 on other Cygwin installations? I did a cygcheck and could not 
find errors, in particular none concerning ImageMagick.

Please note that ImageMagick has identic problems using a JPEG-2000 test 
file generated using jasper 2.0.14 (official Cygwin setup):

$jasper < input.ppm --output-format jp2 > output_jasper.jp2

$identify output_jasper.jp2
Abort (core dumped)

And so on ...

Thanks a lot - UD

                 reply	other threads:[~2022-09-14 14:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nycvar.JAG.7.77.849.2209141557001.13592@SVMV-YR-062.vmv.senhaubsre.qr \
    --to=braumann@uni-leipzig.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).