0, 'y' => 0, 'width' => imagesx($from), 'height' => imagesy($from) - 1]); if(!$debug && !$fromCli) { header('Content-Type: image/png'); imagepng($from); } // Save fusion to cache imagepng($from, $cacheFilename); imagedestroy($to); } // Don't run the function if we're running from the command line if (php_sapi_name() !== 'cli') { $getFrom = $_GET["from"]; $getTo = $_GET["to"]; makeFusion($getFrom, $getTo, FALSE); } ?>