Index: trunk/phase3/includes/media/GIF.php |
— | — | @@ -24,8 +24,12 @@ |
25 | 25 | } |
26 | 26 | |
27 | 27 | function getImageArea( $image, $width, $height ) { |
28 | | - $metadata = unserialize($image->getMetadata()); |
29 | | - return $width * $height * $metadata['frameCount']; |
| 28 | + if ($metadata) { |
| 29 | + $metadata = unserialize($image->getMetadata()); |
| 30 | + return $width * $height * $metadata['frameCount']; |
| 31 | + } else { |
| 32 | + return $width * $height; |
| 33 | + } |
30 | 34 | } |
31 | 35 | |
32 | 36 | function getMetadataType( $image ) { |