Closed sfaujour closed 1 year ago
This issue can be closed as i found the issue here. The import params with "NumPages" will also be applied to images with JPG format, and probably others too. The libvips library doesn't accept this option, and the above error is thrown.
So the "Workaround" is to use vips.DetermineImageType(blob)
and check if this is a GIF, and setting afterwards the NumPages.
Hi, i'm getting this issue below when using the
vips.LoadThumbnailFromBuffer
function.Im running my application with go 1.19 within an ubuntu 22.04 and vips 8.12.1.
When using the
NewThumbnailFromBuffer
function, or setting the params tonil
in the above function, it's working, but it would be great that the other function would work too, as i want to resize gif's as well, and there i need theImportParams
.