You've already forked imgproxy
mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-11-27 22:48:53 +02:00
Fix getImageSize for animated images
This commit is contained in:
@@ -339,6 +339,10 @@ func (img *Image) Height() int {
|
||||
return int(img.VipsImage.Ysize)
|
||||
}
|
||||
|
||||
func (img *Image) PageHeight() int {
|
||||
return int(C.vips_image_get_page_height(img.VipsImage))
|
||||
}
|
||||
|
||||
func (img *Image) Pages() int {
|
||||
p, err := img.GetIntDefault("n-pages", 1)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user