GIMP 2.10.12 exports broken HEIF/HEIC images when size is 63x63px or smaller -> fixed in libheif 1.8.0
GIMP version: 2.10.12
Operating System: Windows 10 x64 ver.1903
Package: Windows Installer from gimp.org
Description of the bug
One can use GIMP to create small icons. When size is set at 63x63px or smaller (menu Image->Scale Image), then exported as HEIF/HEIC, the result is a broken file, size 209 bytes, that neither GIMP nor other programs can open. Broken image, always 209 bytes, reproduces with sizes 63x63px and smaller (20x20px, 40x40px, etc.) Sizes 64x64px and larger are saved correctly, image size > 1KB. JPEG format is unaffected by this bug.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open/create some image.
- Use menu Image->Scale Image to set image size at 63x63px or smaller (20x20px, 40x40px, etc.)
- Use menu File->Export As to save the image in HEIF/HEIC format.
- Try to open the saved file in GIMP.
Expected result:
A correctly saved HEIF/HEIC image file that can be opened/viewed.
Actual result:
GIMP error message: Opening '...filename.heic' failed: Loading HEIF image failed: Invalid input: Item has no data: Item with ID 1 has no compressed data.
Additional information
Notice that the broken file size is always 209 bytes, regardless of image size (63x63px, 20x20px, 40x40px, etc.)
Thank you.