Skip to content

Instantly share code, notes, and snippets.

View bennyfactor's full-sized avatar

Benjamin Lamb bennyfactor

  • Trabian Technology
  • INDPLS IN US NA
View GitHub Profile
@bennyfactor
bennyfactor / imagick.php
Created February 19, 2013 21:23
How to framedrop, orient, transparentize, resize, and place one enormous animated gif on on top of another without making photoshop crush your soul/computer. requires p54-imagick (php imagemagick libs)
#!/usr/bin/php
<?
// Load the existing image
$image = new Imagick(dirname(__FILE__) . '/triangle-optical-illusion-1.gif');
// make animation into filmstrip form
$image = $image->coalesceImages();
$new_image = new Imagick();