New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-colorspace Gray on HEIC image produces corrupted file #6918
Comments
On IM 7, you should use magick, not magick convert. |
Thank you for this information, I didn't know that! Unfortunately, I just tried this command with same parameters than before and result is the same. $ time magick image.heic -quality 50 -colorspace Gray new2.heic
real 0m12.143s
user 0m12.469s
sys 0m0.150s The process is very slow (12s compared to 2s) and it produces a corrupted image. |
On my M1 Mac with 8GB RAM and IM 7.1.1.22 and libheif 1.15.2, I get
The result looks fine. |
Could this be a problem related to Alpine? Or libheif maybe? |
What is your version of libheif? |
The version of installed $ apk version libheif
Installed: Available:
libheif-1.16.2-r0 = 1.16.2-r0 |
Look for it in
for example I have
|
Here is what I have: $ magick -list format | grep HEIF
HEIF HEIC rw+ High Efficiency Image Format (1.16.2) |
That version should be fine unless it has a bug. It worked fine for me on my Mac with 1.15.2. IM 7.1.1-13 is a bit old. Perhaps it had a bug. Try upgrading to the current version. |
ImageMagick version
7.1.1-13
Operating system
Linux
Operating system, version and so on
Alpine 3.18.5
Description
When upgrading ImageMagick from version 7.1.0-16 to 7.1.1-13, our command to compress HEIC image and set colorspace to gray doesn't work anymore. It produces a corrupted file. Moreover, the process time is 6 times slower than before.
Before :
After :
The original image (
image.heic
) and the generated files (before :new1.heic
, after :new2.heic
) are attached below in a zip file.Steps to Reproduce
Images
images.zip
The text was updated successfully, but these errors were encountered: