I've tried every way to resample a GIF and it just won't work on mac.
$source_id_original = imageCreateFromGIF($destination) or imagegif($destination) or imagecreatefromgif($destination);
Since it works on my PC i know the permissions are fine and evreything. The $destination variable also has the correct value when echo'ed to an image that does exist.