# Forge a return array containing metadata information just like getimagesize()
# See PHP documentation at: http://www.php.net/getimagesize
# Forge a return array containing metadata information just like getimagesize()
# See PHP documentation at: http://www.php.net/getimagesize
$metadata[0] = $header['width'];
$metadata[1] = $header['height'];
$metadata[2] = null; # IMAGETYPE constant, none exist for XCF.
$metadata[0] = $header['width'];
$metadata[1] = $header['height'];
$metadata[2] = null; # IMAGETYPE constant, none exist for XCF.
*/
public function getMetadata( $file, $filename ) {
$header = self::getXCFMetadata( $filename );
*/
public function getMetadata( $file, $filename ) {
$header = self::getXCFMetadata( $filename );
if ( $header ) {
// Try to be consistent with the names used by PNG files.
// Unclear from base media type if it has an alpha layer,
if ( $header ) {
// Try to be consistent with the names used by PNG files.
// Unclear from base media type if it has an alpha layer,