MediaWiki
REL1_19
|
Public Member Functions | |
setUp () | |
testApngAnimationMetadata () | |
Given an animated APNG image file check it gets animated metadata right. | |
testPngBitDepth1 () | |
testPngBitDepth8 () | |
testPngGreyscaleColour () | |
testPngGreyscaleNoAlphaColour () | |
testPngIndexColour () | |
testPngNativeText () | |
Test tEXt tag (Uncompressed textual metadata) | |
testPngNativeTextNonAscii () | |
tEXt tags must be encoded iso-8859-1 (vs iTXt which are utf-8) Make sure non-ascii characters get converted properly | |
testPngNativetZtxt () | |
Tests zTXt tag (compressed textual metadata) | |
testPngRgbColour () | |
testPngRgbNoAlphaColour () | |
testStaticPngAnimationMetadata () | |
Test extraction of pHYs tags, which can tell what the actual resolution of the image is (aka in dots per meter). |
Definition at line 2 of file PNGMetadataExtractorTest.php.
Definition at line 4 of file PNGMetadataExtractorTest.php.
Given an animated APNG image file check it gets animated metadata right.
Definition at line 91 of file PNGMetadataExtractorTest.php.
Definition at line 107 of file PNGMetadataExtractorTest.php.
Definition at line 101 of file PNGMetadataExtractorTest.php.
Definition at line 130 of file PNGMetadataExtractorTest.php.
Definition at line 135 of file PNGMetadataExtractorTest.php.
Definition at line 114 of file PNGMetadataExtractorTest.php.
Test tEXt tag (Uncompressed textual metadata)
Definition at line 25 of file PNGMetadataExtractorTest.php.
References PNGMetadataExtractor\getMetadata().
tEXt tags must be encoded iso-8859-1 (vs iTXt which are utf-8) Make sure non-ascii characters get converted properly
Definition at line 42 of file PNGMetadataExtractorTest.php.
References PNGMetadataExtractor\getMetadata().
Tests zTXt tag (compressed textual metadata)
Definition at line 10 of file PNGMetadataExtractorTest.php.
References PNGMetadataExtractor\getMetadata().
Definition at line 120 of file PNGMetadataExtractorTest.php.
Definition at line 125 of file PNGMetadataExtractorTest.php.
Test extraction of pHYs tags, which can tell what the actual resolution of the image is (aka in dots per meter).
function testPngPhysTag () { $meta = PNGMetadataExtractor::getMetadata( $this->filePath . 'Png-native-test.png' );
$this->assertArrayHasKey( 'text', $meta ); $meta = $meta['text'];
$this->assertEquals( '2835/100', $meta['XResolution'] ); $this->assertEquals( '2835/100', $meta['YResolution'] ); $this->assertEquals( 3, $meta['ResolutionUnit'] ); // 3 = cm }
/** Given a normal static PNG, check the animation metadata returned.
Definition at line 78 of file PNGMetadataExtractorTest.php.