https://bugzilla.redhat.com/show_bug.cgi?id=2195906
Bug ID: 2195906 Summary: ImageMagick creates big-endian tiff images on aarch64 Product: Fedora Version: 38 Hardware: aarch64 OS: Linux Status: NEW Component: ImageMagick Severity: medium Assignee: luya_tfz@thefinalzone.net Reporter: fedora@georg.so QA Contact: extras-qa@fedoraproject.org CC: blaise@gmail.com, davide@cavalca.name, epel-packagers-sig@lists.fedoraproject.org, fedora@famillecollet.com, luya_tfz@thefinalzone.net, michel@michel-slm.name, ngompa13@gmail.com, pampelmuse@gmx.at, sergio@serjux.com Target Milestone: --- Classification: Fedora
When converting a PNG image to a TIFF image, ImageMagick unexpectedly creates the image with big-endian byteorder although aarch64 is a little-endian architecture.
Input test image is attached.
Reproducible: Always
Steps to Reproduce: 1. /usr/bin/convert normal.png -depth 32 -define quantum:format=floating-point out.tiff 2. /usr/bin/convert out.tiff json: | grep endian -i 3. lscpu | grep 'Architecture|Byte Order' 4. ls -lh out.tiff Actual Results: "endianness": "MSB", "tiff:endian": "msb", Architecture: aarch64 Byte Order: Little Endian -rw-r--r--. 1 juser juser 43K May 6 12:40 out.tiff
Expected Results: "endianness": "LSB", "tiff:endian": "lsb", Architecture: aarch64 Byte Order: Little Endian -rw-r--r--. 1 juser juser 5.9K May 6 12:40 out.tiff
NB: Also, the file size of the resulting tiff is much bigger than on x86_64 (f37), where it's just 5.9 KiB.
$ rpm -q ImageMagick ImageMagick-7.1.1.4-3.fc38.aarch64 $ uname -a Linux f38-aarch64 6.2.14-300.fc38.aarch64 #1 SMP PREEMPT_DYNAMIC Mon May 1 00:58:31 UTC 2023 aarch64 GNU/Linux
This issue also affects python3-img2pdf has this breaks a few of its unittests, if they are running on aarch64. See also: https://koji.fedoraproject.org/koji/taskinfo?taskID=100027658
https://bugzilla.redhat.com/show_bug.cgi?id=2195906
--- Comment #1 from Georg Sauthoff fedora@georg.so --- Created attachment 1962764 --> https://bugzilla.redhat.com/attachment.cgi?id=1962764&action=edit Input PNG test image
https://bugzilla.redhat.com/show_bug.cgi?id=2195906
Georg Sauthoff fedora@georg.so changed:
What |Removed |Added ---------------------------------------------------------------------------- Doc Type|--- |If docs needed, set a value
--- Comment #2 from Georg Sauthoff fedora@georg.so --- See also my upstream report: https://github.com/ImageMagick/ImageMagick/issues/6300
https://bugzilla.redhat.com/show_bug.cgi?id=2195906
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- FEDORA-2023-27548af422 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-27548af422
https://bugzilla.redhat.com/show_bug.cgi?id=2195906
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- FEDORA-2023-27548af422 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-27548af422` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-27548af422
See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
https://bugzilla.redhat.com/show_bug.cgi?id=2195906
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version| |ImageMagick-7.1.1.15-1.fc38 Status|ON_QA |CLOSED Resolution|--- |ERRATA Last Closed| |2023-08-24 01:31:34
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- FEDORA-2023-27548af422 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.
epel-packagers-sig@lists.fedoraproject.org