RemoveAnimation removes all animation-related data from the image making it a static image. It doesn't remove already loaded frames and keeps them vertically stacked.
()
| 438 | // |
| 439 | // It doesn't remove already loaded frames and keeps them vertically stacked. |
| 440 | func (img *Image) RemoveAnimation() error { |
| 441 | var tmp *C.VipsImage |
| 442 | |
| 443 | if C.vips_image_remove_animation(img.VipsImage, &tmp) != 0 { |
| 444 | return Error() |
| 445 | } |
| 446 | |
| 447 | img.swapAndUnref(tmp) |
| 448 | return nil |
| 449 | } |
| 450 | |
| 451 | func (img *Image) HasAlpha() bool { |
| 452 | return C.vips_image_hasalpha(img.VipsImage) > 0 |
no test coverage detected