简体   繁体   中英

PHP crop animated gif

Is it possible somehow to crop animated gif with builtin php libraries, ie without using Imagick etc?

Thanks ;)

There are no "built-in" image processing libraries in PHP. You have to use GD, Imagick, etc.

you can modify my class' resize() method to get your animated gif cropped.

http://www.phpclasses.org/package/7353-PHP-Resize-animations-in-files-of-the-GIF-format.html

The class is resizing GIF animations with GD. First parses the frames, then resizes them, after that it compiles them again into single file without losing its delay times,disposal methods, color tables etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM