Index: trunk/phase3/includes/media/Generic.php |
— | — | @@ -424,6 +424,10 @@ |
425 | 425 | return $gis; |
426 | 426 | } |
427 | 427 | |
| 428 | + function isAnimatedImage( $image ) { |
| 429 | + return false; |
| 430 | + } |
| 431 | + |
428 | 432 | function getShortDesc( $file ) { |
429 | 433 | global $wgLang; |
430 | 434 | $nbytes = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), |
Index: trunk/phase3/includes/media/GIF.php |
— | — | @@ -39,6 +39,15 @@ |
40 | 40 | return $width * $height; |
41 | 41 | } |
42 | 42 | } |
| 43 | + |
| 44 | + function isAnimatedImage( $image ) { |
| 45 | + $ser = $image->getMetadata(); |
| 46 | + if ($ser) { |
| 47 | + $metadata = unserialize($ser); |
| 48 | + if( $metadata['frameCount'] > 1 ) return true; |
| 49 | + } |
| 50 | + return false; |
| 51 | + } |
43 | 52 | |
44 | 53 | function getMetadataType( $image ) { |
45 | 54 | return 'parsed-gif'; |