Increase HEIF maximum image size limit on load
GIMP version: 2.10.12
Operating System: Windows7 x64
Package: Installer from gimp.org
Description of the bug
GIMP can save large HEIF images (larger than 16384x16384), but cannot open them for viewing.
This issue appears to be inherited from libheif, specifically MAX_IMAGE_WIDTH/HEIGHT
in heif_limits.h
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Export a HEIF image larger than 16384x16384 (e.g. 18000x12000)
- Open the saved image.
Expected result: Image is loaded.
Actual result:
Image loading fails with message:
Loading HEIF image failed: Memory allocation error: Security limit exceeded: Image size 18000x12000 exceeds the maximum image size 16384x16384.