Imagick: Remove frames from an animated GIF?
I am trying to understand how to remove frames from an animated GIF. Currently I am trying this (as a test): $count = 1; foreach ($_im AS $frame) { if ($count > 1) { $frame->removeImage(); } $count++; } However this seems to toast everything in the object. Suggestions from workmates have been to just create another IM object, and extract a famee into it, etc. That seems extremely messy however. I've been going through the Imagick documentation for a while, and tried a couple of things... But I didn't manage to do what you want either -- so, we are at least two who can't find out a clean way ^^