1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-06-17 22:37:33 +02:00

Fix animated JPEG XL support

This commit is contained in:
DarthSim
2024-12-08 21:07:36 +03:00
parent 9d955444df
commit d9abf2d3d7
5 changed files with 13 additions and 9 deletions

View File

@ -337,7 +337,7 @@ func (img *Image) Load(imgdata *imagedata.ImageData, shrink int, scale float64,
case imagetype.JPEG:
err = C.vips_jpegload_go(data, dataSize, C.int(shrink), &tmp)
case imagetype.JXL:
err = C.vips_jxlload_go(data, dataSize, &tmp)
err = C.vips_jxlload_go(data, dataSize, C.int(pages), &tmp)
case imagetype.PNG:
err = C.vips_pngload_go(data, dataSize, &tmp, vipsConf.PngUnlimited)
case imagetype.WEBP: