How the encoders that can carry a gain map (JPEG, AVIF, JPEG XL) write Image.gainMap, see their gainMap option
gainMap
Optional
The map's quality (0-100, like the format's quality; for JPEG XL 100 is lossless)
quality
90
The map's size as a factor of the image's (0-1)
The map's own size Copy
The map's own size
How the encoders that can carry a gain map (JPEG, AVIF, JPEG XL) write Image.gainMap, see their
gainMapoption