$sizeX ) { $sizeX = $m[1]; } if( $m[2] > $sizeY ) { $sizeY = $m[2]; } } /* } */ wfDebug( __METHOD__ . ": Found $sizeX x $sizeY x $frameCount \n" ); # Forge a return array containing metadata information just like getimagesize() # See PHP documentation at: http://www.php.net/getimagesize $metadata = array(); $metadata['frameCount'] = $frameCount; $metadata[0] = $sizeX; $metadata[1] = $sizeY; $metadata[2] = null; $metadata[3] = "height=\"$sizeY\" width=\"$sizeX\""; $metadata['mime'] = 'image/x-xcf'; $metadata['channels'] = $colorspace == 1 ? 3 : 4; return $metadata; } /** * Must use "im" for XCF * * @return string */ protected static function getScalerType( $dstPath, $checkDstPath = true ) { return "im"; } }