mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
HDR and EXR files decoded by ImageMagick can produce 16-bit PNG buffers. Sharp's CLAHE operation (hist_local) requires VIPS_FORMAT_UCHAR (8-bit). Check the buffer depth and convert to 8-bit sRGB before processing.