$image->BlobToImage( @blob );
if ($image->Get('signature') ne
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7')
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52')
{ print "not ok $test\n"; }
else
{ print "ok $test\n"; }
# Test reading BZip compressed MIFF
#
testRead( 'input.miff',
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7' );
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
#
# 2) Test reading BZip stream-compressed MIFF (.bz2 extension)
print("Reading BZip stream-compressed MIFF (.bz2 extension) ...\n");
++$test;
testRead( 'input.miff.bz2',
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7' );
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
testReadWrite( 'input.miff',
'output.miff',
q/compression=>'BZip'/,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7' );
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
$test = 0; # Quench PERL compliaint
++$test;
testGetAttribute('input.miff','signature',
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
++$test;
testGetAttribute('input.miff','texture',undef);
chdir 't/jbig' || die 'Cd failed';
testRead( 'input.jbig',
- 'f7047e83432fbef872f3034a19efb95aa3b241d0be228ae0ccdc7814a9e27811');
+ '214ce53ffd74a5c46a354e53d4512294f6b68c8dc843db61d5de71f53c7ace0c');
testReadWrite( 'input.jbig',
'output.jbig',
'',
- 'f7047e83432fbef872f3034a19efb95aa3b241d0be228ae0ccdc7814a9e27811' );
+ '214ce53ffd74a5c46a354e53d4512294f6b68c8dc843db61d5de71f53c7ace0c' );
$test=0; # Keep perl from complaining
#
testMontage( q//,
q/background=>'#696e7e'/,
- 'd29f905749426e5491bbd8c4f58b7c14dc1a72250632b7e7b542910e0cbb7c77');
+ '6f8304c88f6dae4ade2a09fb7b4562cf2c09978cb30b025afaf9bd5805a4e75e');
#
# 2) Test Center gravity
++$test;
testMontage( q//,
q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'Center'/,
- '21ab4077722e45db67c945b2364cfc1365d3f939d57fc6fb2c7b77f161381c2e');
+ '4fa94e68dc41fa0fda3469e6b8ebc4c07be6ef656405a1ea8f9ed8b00aa07552');
#
# 3) Test NorthWest gravity
++$test;
testMontage( q//,
q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'NorthWest'/,
- 'a518ad6aa1c3ad2b117864525d610481c1b3b9ead2c624c773fb427f85ef897b');
+ '24adcfa00f2c69d10fda815c9572bd7f621adb93a58a9c3c85657060929da4d0');
#
# 4) Test North gravity
++$test;
testMontage( q//,
q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'North'/,
- '4126725283eb699545d755a6b30c5fc6cee9ac16a1e8310cdbbedcbd054bebf6');
+ '70bb1be5bad21d5dd545ffe62eeb90052a037fcc1613aaa3f3b3c4d4c6138e8a');
#
# 5) Test NorthEast gravity
++$test;
testMontage( q//,
q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'NorthEast'/,
- 'e144c8d0da144864063753903838a286d46da56ca9ea0ce0b6080f84c6feac6c');
+ '116668aedcc616527dabac2c07ea597d5cc26e3aaf33db14d8ce796892bc1f1c');
#
# 6) Test West gravity
++$test;
testMontage( q//,
q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'West'/,
- '67286cf1ed572e836f6b67c5d733a039bba9e6a7ef18d25397e46c17223b206f');
+ 'abb3104224d07ba50235e750c8009b231a0e6aaa596fb2ec3703b2061a59abc3');
#
# 7) Test East gravity
++$test;
testMontage( q//,
q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'East'/,
- 'decf855bf26dfc3f7401769a09e302d8bac53cba6c27fd456cdfbc35e494be01');
+ '8723423ac9151136571b6e8f053fc60b09a8ec18d94e4fbc29c492de032c9a7d');
#
# 8) Test SouthWest gravity
++$test;
testMontage( q//,
q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'SouthWest'/,
- '848fda241866b1a191ab4794b42272b5756dbeacac5b58ef5227a34a8c72817d');
+ 'abc713cef6d9923859854c164b83ed7b92f6c15ae6924207bb8a38063395650b');
#
# 9) Test South gravity
++$test;
testMontage( q//,
q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'South'/,
- 'f5cccb291b3bea8cb62e5cd7a6c8e154eedfd8e12c20409a8e663231e62411c4');
+ '9992d5631703aa64d4fb87c71881df39aeff1cc821320d0a43f00897e7cd6a17');
#
# 10) Test SouthEast gravity
++$test;
testMontage( q//,
q/background=>'#696e7e', geometry=>'90x80+5+5>', gravity=>'SouthEast'/,
- 'a19748d933fefe536b29b8ba98ce0024e3f2dc98102a1f56307a229bc3042f1c');
+ 'ae4322daebfbd3fe448afffe33aa599be518eaebb3515793e1efe6dc33939383');
#
# 11) Test Framed Montage
testMontage( q/bordercolor=>'blue', mattecolor=>'red'/,
q/background=>'#696e7e', tile=>'4x4', geometry=>'90x80+3+3>', frame=>'8x10',
borderwidth=>'0', gravity=>'Center', background=>'gray'/,
- 'dcfa6c2bc0e20ff0b5dba464559a1e106e605ec456c21c1205a53e478e4f3e02',
- 'dcfa6c2bc0e20ff0b5dba464559a1e106e605ec456c21c1205a53e478e4f3e02',
- '72a7587a058c71cd62226e59b64c335190a37d7dd990d68534cf05df61084783');
+ '40835871b13232243ba4d2bcb244d06958556a24a9624e793f5c4c291d64f322');
#
# 12) Test Framed Montage with drop-shadows
testMontage( q/bordercolor=>'blue', mattecolor=>'red'/,
q/background=>'#696e7e', tile=>'4x4', geometry=>'90x80+6+6>', frame=>'8x10',
borderwidth=>'0', gravity=>'Center', shadow=>'True',background=>'gray'/,
- 'b3b7a530270164b4c5e391ac8080736a901428e5f650694170969fd292559317',
- 'b3b7a530270164b4c5e391ac8080736a901428e5f650694170969fd292559317',
- '9fe18e11ac759d3a86362f16d0bdee4b6952d617daa3ad2c3511e19050dda71d');
+ '865d005eba6dc7714081e8817c6aea95d37160e4cbd2b373d8143f614080d05e');
#
# 13) Test Framed Montage with drop-shadows and background texture
testMontage( q/bordercolor=>'blue', mattecolor=>'red'/,
q/background=>'#696e7e', tile=>'4x4', geometry=>'90x80+6+6>', frame=>'8x10',
borderwidth=>'0', gravity=>'Center', shadow=>'True', texture=>'granite:'/,
- '08d4dfa09995e13a518002565d862f6e89d65de37d59c1d1ab45d7c6cde6bd47');
+ '46b31cd9a5bc072131eb4683edf600d38bcbf389ab6a3eb1fe565b557b80dadb');
#
# 14) Test Un-bordered, Un-framed Montage
testMontage( q//,
q/background=>'#696e7e', tile=>'4x4', geometry=>'90x80+6+6>', mode=>'Unframe',
borderwidth=>'0', gravity=>'Center', background=>'gray'/,
- '245f9fbee901f99e08458aad797ade92ea17e68b230212510ad2eca96e169e39',
- '245f9fbee901f99e08458aad797ade92ea17e68b230212510ad2eca96e169e39',
- 'ab07c5591848f1aa8bfffc46c094be40cf662e18f68b19229f1f7e9d9eec4692');
+ 'b9df49be9b056ed8fd4c4eb7621aa073df65740e4aaebc038c294cb3731f334f');
#
# 15) Test Bordered, Un-framed Montage (mode=>'Unframe')
testMontage( q/bordercolor=>'red'/,
q/background=>'#696e7e', tile=>'4x4', geometry=>'90x80+6+6>', mode=>'Unframe',
borderwidth=>'5', gravity=>'Center', background=>'gray'/,
- '611833bd0e13681a82d34c4c40b2a263bf245ac879de240114df874f9eaca7f0',
- '611833bd0e13681a82d34c4c40b2a263bf245ac879de240114df874f9eaca7f0',
- '65bb1cd11a0dbbd90ca46b07ce58b2ba5fcfadc0869356e5a08eda53510e0126');
+ '9d7d0f1886ef8d48f680567163d3a4583897d114c7abbb9da6a98f96fb629ebb');
#
# 16) Test Bordered, Un-framed Montage (mode=>'UnFrame')
testMontage( q/bordercolor=>'red'/,
q/ tile=>'4x4', geometry=>'90x80+6+6>', mode=>'UnFrame',
borderwidth=>'5', gravity=>'Center', background=>'gray'/,
- '611833bd0e13681a82d34c4c40b2a263bf245ac879de240114df874f9eaca7f0',
- '611833bd0e13681a82d34c4c40b2a263bf245ac879de240114df874f9eaca7f0',
- '65bb1cd11a0dbbd90ca46b07ce58b2ba5fcfadc0869356e5a08eda53510e0126');
+ '9d7d0f1886ef8d48f680567163d3a4583897d114c7abbb9da6a98f96fb629ebb');
#
# 17) Test Un-bordered, Un-framed Montage with 16x1 tile
testMontage( q//,
q/background=>'#696e7e', tile=>'16x1', geometry=>'90x80+0+0>', mode=>'Unframe',
borderwidth=>'0', gravity=>'Center', background=>'gray'/,
- '49bf08b9ae34c7c8acee15b123c29e414ae6fb9bdf2a15dbdd3a33a753b8e7ff',
- '49bf08b9ae34c7c8acee15b123c29e414ae6fb9bdf2a15dbdd3a33a753b8e7ff',
- 'c42d5f2bef5f30167f02d6ba85504ee82e06c16d9404bc6fc0f6e75c0f8f53e9');
+ '9f6f0c7ff76283b0f8747c1e12bd810bda0c47ab8cf78a4ae584556a64c88213');
#
# 18) Test concatenated thumbnail Montage (concatenated via special Concatenate mode)
++$test;
testMontage( q//,
q/background=>'#696e7e', tile=>'4x4', geometry=>'90x80>', mode=>'Concatenate'/,
- 'b46f6d6c6305ab1d5f05f89030e775fca2f01dd5d40a8340372bd31dafaa4e83');
+ 'dfede51035a4ce942e3ba9909f85eb497c134a60bb8363afded0ae81f73f0e46');
#
# 19) Test concatenated thumbnail Montage (concatentated by setting params to zero)
# Thumbnails should be compacted tightly together in a grid
testMontage( q//,
q/background=>'#696e7e', tile=>'4x4', geometry=>'+0+0', mode=>'Unframe', shadow=>'False',
borderwidth=>'0', background=>'gray'/,
- 'b46f6d6c6305ab1d5f05f89030e775fca2f01dd5d40a8340372bd31dafaa4e83',
- 'b46f6d6c6305ab1d5f05f89030e775fca2f01dd5d40a8340372bd31dafaa4e83',
- '6c61a8ad7be5f8c368dcb591f766349e648b623cbc41e6699ba3ea53ef182510');
+ 'dfede51035a4ce942e3ba9909f85eb497c134a60bb8363afded0ae81f73f0e46');
# Motion Picture Experts Group file interchange format (version 2)
#
testRead( 'input.m2v',
- '4ed5fcb7356705276d7a73f2088a7192317df370de86ab95b29874f60e37088e' );
+ '2e30dd34e6cf2702188059bd8828930f39b1a7746a413f13f6d0dc98b9b0d3a6' );
#
# Motion Picture Experts Group file interchange format
#
++$test;
testRead( 'input.mpg',
- '531b7360d6733d6339f247af3a3833c9e95d6c376b64374d374e26cfdede70a5' );
+ 'e873cc6cc6eb5b5d11d5ddaaac92c6b86fec09e9721cbaafb8feca8c5be3c12a' );
1;
# 1) Test Monochrome PNG
#
testRead( 'input_mono.png',
- 'a8d79029f6ced36f904659dda5ea67a6bab5e602b1033aa29c7f1b45b35c1178' );
+ 'fa43f8c3d45c3efadab6791a6de83b5a303f65e2c1d58e0814803a4846e68593' );
#
# 2) Test 256 color pseudocolor PNG
#
++$test;
testRead( 'input_256.png',
- '5d1041037358767b9ebd2d5398c50daeee2ae644e2d128006e2eb91e82cf4b16' );
+ '5798b9623e5922d3f6c0e87ae76ccc5a69568258e557613f20934f2de6ee2d35' );
#
# 3) Test TrueColor PNG
#
++$test;
testRead( 'input_truecolor.png',
- '76f43f03e51c8608bfca7ff96d3936148ad855782968a017ea03cccbeebff64d' );
+ 'eb9adaa26f3cda80273f436ddb92805da2cb88dd032d24380cd48cf05432a326' );
#
# 4) Test Multiple-image Network Graphics
#
++$test;
testRead( 'input.mng',
- '5a883e67c29d7bb27897ec7a3f3cb3fb0330fb43aef4360e8314503cb37fae09' );
+ '65c0eacf6e060b9fb8467eaa0f74e2dcc3ef72d06577f06a506bd0546b01fb61' );
#
# 5) Test 16-bit Portable Network Graphics
++$test;
testRead( 'input_16.png',
'd4bed86abb1849f69f1a5afb7c5cf8798e8192ba228357f189c277198c14f5a0',
- '4036b56c00d731a2865470815eabc177dc158af2abacb34ef95c7e716ec2da60');
+ '2d30a8bed1ae8bd19c8320e861f3140dfc7497ca8a05d249734ab41c71272f08');
#
print( "1-bit grayscale PNG ...\n" );
testRead( 'input_bw.png',
- '5a5b600153abaaf82dc9086272d01bedc4201d14b614c18cb4e9c6d1581c9023' );
+ '7d12eaac6f41d3c2947022f382e158ea715e918ce0cd73649ec04db01239c88f' );
#
# 2) Test Monochrome PNG
++$test;
print( "8-bit grayscale PNG ...\n" );
testRead( 'input_mono.png',
- 'a8d79029f6ced36f904659dda5ea67a6bab5e602b1033aa29c7f1b45b35c1178' );
+ 'fa43f8c3d45c3efadab6791a6de83b5a303f65e2c1d58e0814803a4846e68593' );
#
# 3) Test 16-bit Portable Network Graphics
print( "16-bit grayscale PNG ...\n" );
testRead( 'input_16.png',
'd4bed86abb1849f69f1a5afb7c5cf8798e8192ba228357f189c277198c14f5a0',
- '4036b56c00d731a2865470815eabc177dc158af2abacb34ef95c7e716ec2da60' );
+ '2d30a8bed1ae8bd19c8320e861f3140dfc7497ca8a05d249734ab41c71272f08' );
#
# 4) Test 256 color pseudocolor PNG
#
++$test;
print( "8-bit indexed-color PNG ...\n" );
testRead( 'input_256.png',
- '5d1041037358767b9ebd2d5398c50daeee2ae644e2d128006e2eb91e82cf4b16' );
+ '5798b9623e5922d3f6c0e87ae76ccc5a69568258e557613f20934f2de6ee2d35' );
#
# 5) Test TrueColor PNG
++$test;
print( "24-bit Truecolor PNG ...\n" );
testRead( 'input_truecolor.png',
- '76f43f03e51c8608bfca7ff96d3936148ad855782968a017ea03cccbeebff64d' );
+ 'eb9adaa26f3cda80273f436ddb92805da2cb88dd032d24380cd48cf05432a326' );
#
# 6) Test Multiple-image Network Graphics
++$test;
print( "MNG with 24-bit Truecolor PNGs...\n" );
testRead( 'input.mng',
- '5a883e67c29d7bb27897ec7a3f3cb3fb0330fb43aef4360e8314503cb37fae09' );
+ '65c0eacf6e060b9fb8467eaa0f74e2dcc3ef72d06577f06a506bd0546b01fb61' );
testReadWrite( 'input_256.png',
'output_256.png',
q/quality=>54/,
- '26687d6be46b4e1ca5201a47caa7dad660245c5f4517835ab6e19f2f84fc4a03' );
+ '5798b9623e5922d3f6c0e87ae76ccc5a69568258e557613f20934f2de6ee2d35' );
#
# 2) Test truecolor image
testReadWrite( 'input_truecolor.png',
'output_truecolor.png',
q/quality=>55/,
- '76f43f03e51c8608bfca7ff96d3936148ad855782968a017ea03cccbeebff64d' );
+ 'eb9adaa26f3cda80273f436ddb92805da2cb88dd032d24380cd48cf05432a326' );
#
# 3) Test monochrome image
++$test;
testReadWrite( 'input_mono.png',
'output_mono.png', '',
- 'a8d79029f6ced36f904659dda5ea67a6bab5e602b1033aa29c7f1b45b35c1178' );
+ 'fa43f8c3d45c3efadab6791a6de83b5a303f65e2c1d58e0814803a4846e68593' );
#
# 4) Test Multiple-image Network Graphics
testReadWrite( 'input.mng',
'output.mng',
q/quality=>55/,
- '5a883e67c29d7bb27897ec7a3f3cb3fb0330fb43aef4360e8314503cb37fae09' );
+ '65c0eacf6e060b9fb8467eaa0f74e2dcc3ef72d06577f06a506bd0546b01fb61' );
#
# 5) Test 16-bit Portable Network Graphics
'output_16.png',
q/quality=>55/,
'd4bed86abb1849f69f1a5afb7c5cf8798e8192ba228357f189c277198c14f5a0',
- '4036b56c00d731a2865470815eabc177dc158af2abacb34ef95c7e716ec2da60');
+ '2d30a8bed1ae8bd19c8320e861f3140dfc7497ca8a05d249734ab41c71272f08');
#
print( "1-bit grayscale PNG ...\n" );
testReadWrite( 'input_bw.png', 'output_bw.png', q/quality=>95/,
- '5a5b600153abaaf82dc9086272d01bedc4201d14b614c18cb4e9c6d1581c9023');
+ '7d12eaac6f41d3c2947022f382e158ea715e918ce0cd73649ec04db01239c88f');
#
# 2) Test monochrome image
print( "8-bit grayscale PNG ...\n" );
testReadWrite( 'input_mono.png',
'output_mono.png', '',
- 'a8d79029f6ced36f904659dda5ea67a6bab5e602b1033aa29c7f1b45b35c1178');
+ 'fa43f8c3d45c3efadab6791a6de83b5a303f65e2c1d58e0814803a4846e68593');
#
# 3) Test 16-bit Portable Network Graphics
#
'output_16.png',
q/quality=>55/,
'd4bed86abb1849f69f1a5afb7c5cf8798e8192ba228357f189c277198c14f5a0',
- '4036b56c00d731a2865470815eabc177dc158af2abacb34ef95c7e716ec2da60' );
+ '2d30a8bed1ae8bd19c8320e861f3140dfc7497ca8a05d249734ab41c71272f08' );
#
# 4) Test pseudocolor image
#
testReadWrite( 'input_256.png',
'output_256.png',
q/quality=>54/,
- '26687d6be46b4e1ca5201a47caa7dad660245c5f4517835ab6e19f2f84fc4a03' );
+ '5798b9623e5922d3f6c0e87ae76ccc5a69568258e557613f20934f2de6ee2d35' );
#
# 5) Test truecolor image
#
testReadWrite( 'input_truecolor.png',
'output_truecolor.png',
q/quality=>55/,
- '76f43f03e51c8608bfca7ff96d3936148ad855782968a017ea03cccbeebff64d' );
+ 'eb9adaa26f3cda80273f436ddb92805da2cb88dd032d24380cd48cf05432a326' );
#
# 6) Test Multiple-image Network Graphics
#
testReadWrite( 'input.mng',
'output.mng',
q/quality=>55/,
- '5a883e67c29d7bb27897ec7a3f3cb3fb0330fb43aef4360e8314503cb37fae09' );
+ '65c0eacf6e060b9fb8467eaa0f74e2dcc3ef72d06577f06a506bd0546b01fb61' );
#
print("Monochrome ...\n");
testRead ( 'input_mono.tiff',
- 'dedb5873a990158f0e5abdebda8c8dfb32de0be16b2b191fcb476b754e000a7b' );
+ '71e1a6be223e307b1dbf732860792b15adba662b7a7ef284daf7f982f874ccf1' );
#
# 2) Test reading PseudoColor (16 color)
++$test;
print("PseudoColor (16 color)...\n");
testRead( 'input_16.tiff',
- '58a82998d620aba54b86ab8dca7cbfeb726f3e86842369d5a0292a8522e95dab' );
+ '0de2dcbf667c69ae6735d1a701b4038c1eeea25cc86981a496bb26fc82541835' );
#
# 3) Test reading PseudoColor (16 color + matte channel)
++$test;
print("PseudoColor (16 color + matte channel)...\n");
testRead( 'input_16_matte.tiff',
- '58a82998d620aba54b86ab8dca7cbfeb726f3e86842369d5a0292a8522e95dab' );
+ '0de2dcbf667c69ae6735d1a701b4038c1eeea25cc86981a496bb26fc82541835' );
#
# 4) Test reading PseudoColor (256 color)
++$test;
print("PseudoColor (256 color) ...\n");
testRead( 'input_256.tiff',
- 'ec6408aba63b43dfc594b4bd766e43457754bb2382a02c170e3d085366e9a6f4',
- '59c97ab49c16b8664f1362242548399ad9e902b96959db98540ec820484380b1' );
+ 'b2644ac928730aa1d28e754aeb17b4731b57daea28c9fb89b1b50623e87215b5' );
#
# 5) Test reading PseudoColor (256 color + matte channel)
++$test;
print("PseudoColor (256 color + matte channel) ...\n");
testRead( 'input_256_matte.tiff',
- '824af58cdd8a8accffee3dab1ed9d28b34a8b183d3e5f5f13caeaab03bcadd13',
- '64b8429356cf9ea2b717faaa28a85b0f7ca174ea1a72063c1d4b2270084e4881' );
+ 'c8e5089f89ed3b7d067222e187ccd95da0a586f3a7f669876188fe8bfa04e6d9' );
#
# 6) Test reading PseudoColor using contiguous planar packing
++$test;
print("PseudoColor (256 color) contiguous planes ...\n");
testRead( 'input_256_planar_contig.tiff',
- 'ec6408aba63b43dfc594b4bd766e43457754bb2382a02c170e3d085366e9a6f4',
- '59c97ab49c16b8664f1362242548399ad9e902b96959db98540ec820484380b1' );
+ 'b2644ac928730aa1d28e754aeb17b4731b57daea28c9fb89b1b50623e87215b5' );
#
# 7) Test reading PseudoColor using seperate planes
++$test;
print("PseudoColor (256 color) seperate planes ...\n");
testRead( 'input_256_planar_separate.tiff',
- 'ec6408aba63b43dfc594b4bd766e43457754bb2382a02c170e3d085366e9a6f4',
- '59c97ab49c16b8664f1362242548399ad9e902b96959db98540ec820484380b1' );
+ 'b2644ac928730aa1d28e754aeb17b4731b57daea28c9fb89b1b50623e87215b5' );
#
# 8) Test Reading TrueColor (8-bit)
++$test;
print("TrueColor (8-bit) image ...\n");
testRead( 'input_truecolor.tiff',
- '2c5f5bcc5168543b807bf50476e472cd38e8d1a7d2c68df91e25ae7cd001166a' );
+ 'f72b63be472e5e730ee2635463c6643d11057d251709ffe1f2027f69b57449df' );
#
# 9) Test Reading TrueColor (16-bit)
++$test;
print("TrueColor (16-bit) image ...\n");
testRead( 'input_truecolor_16.tiff',
- '9897466dce6a47db3530821056c0a1c6e20f20d5bbfce837addfbede63bdecab',
- '768d8c7d0a52108f1f8dc12fb10412f42bc18f07b0a537dd77c7774bec04a273' );
+ '81def436d1dea0ee118164ff4f017c62ad7a5a37bf97a820244a4e2c86c338ab' );
#
# 10) Test Reading 8-bit TrueColor Tiled (32x32 tiles)
++$test;
print("TrueColor (8-bit) tiled image, 32x32 tiles ...\n");
testRead( 'input_truecolor_tiled32x32.tiff',
- '2c5f5bcc5168543b807bf50476e472cd38e8d1a7d2c68df91e25ae7cd001166a' );
+ 'f72b63be472e5e730ee2635463c6643d11057d251709ffe1f2027f69b57449df' );
#
# 11) Test Reading 8-bit TrueColor Tiled (8 rows per strip)
++$test;
print("TrueColor (8-bit) stripped, image, 8 rows per strip ...\n");
testRead( 'input_truecolor_stripped.tiff',
- '2c5f5bcc5168543b807bf50476e472cd38e8d1a7d2c68df91e25ae7cd001166a' );
+ 'f72b63be472e5e730ee2635463c6643d11057d251709ffe1f2027f69b57449df' );
#
# 12) Test Reading Grayscale 4-bit
++$test;
print("Grayscale (4-bit) ...\n");
testRead( 'input_gray_4bit.tiff',
- '3d58e49ad202f2b171214f7a0e8ebdc2ac2c7e45b68a2249502f9339ca7efc6e');
+ 'e55c01b0d28b0a19431ba27203db7cb6ada189c9519d4466c44a764aad5e185a');
#
# 13) Test Reading Grayscale 8-bit
++$test;
print("Grayscale (8-bit) ...\n");
testRead( 'input_gray_8bit.tiff',
- '76f4dd783661899ede132a87a7c68132462d0a60efe92906388c3aca1fb76130');
+ 'b51e862fcc24d439870da413c664dfefc36cea1260d807b3208d6f091566263c');
#
# 14) Test Reading Grayscale 8-bit + matte
++$test;
print("Grayscale (8-bit + matte) ...\n");
testRead( 'input_gray_8bit_matte.tiff',
- '30206f5082b53a8f81d1b0e5dfec94b3513b15ee3fe87fb646a7fd5bf9c94c04' );
+ '6002e57537cd54733551f8c4269e8104f2b14f8fcc58a07eda61f5911eb11c80' );
#
# 15) Test Reading Grayscale 12-bit
++$test;
print("Grayscale (12-bit) ...\n");
testRead( 'input_gray_12bit.tiff',
- '8784d89a246384f42210e980cfccb4e6c98de9dade262984bf756e16232e6c83');
+ '638d5287bb0e6b585525334332ac348ab54903ad0104b789f9335413a8c59276');
#
# 16) Test Reading Grayscale 16-bit
++$test;
print("Grayscale (16-bit) ...\n");
testRead( 'input_gray_16bit.tiff',
- 'f056659e30e514325b8843d88f7bfa7a59c8b0496134ad0e66ea46eeece068d6',
- 'c8428037f92e6ef6c9fca343f3b6206dd9404304b310d20782346db874292e1f',
- 'c8428037f92e6ef6c9fca343f3b6206dd9404304b310d20782346db874292e1f');
+ '9acab3f8b02e461149decd6dbb99d4b91be81a129e5f4cafc229e2f393173819');
testReadWrite( 'input_16.tiff',
'output_16.tiff',
q//,
- '58a82998d620aba54b86ab8dca7cbfeb726f3e86842369d5a0292a8522e95dab');
+ '0de2dcbf667c69ae6735d1a701b4038c1eeea25cc86981a496bb26fc82541835');
#
# 2) Test 8-bit pseudocolor image
testReadWrite( 'input_256.tiff',
'output_256.tiff',
q//,
- 'ec6408aba63b43dfc594b4bd766e43457754bb2382a02c170e3d085366e9a6f4',
- '59c97ab49c16b8664f1362242548399ad9e902b96959db98540ec820484380b1');
+ 'b2644ac928730aa1d28e754aeb17b4731b57daea28c9fb89b1b50623e87215b5');
#
# 3) Test 4-bit pseudocolor + matte channel image
testReadWrite( 'input_16_matte.tiff',
'output_16_matte.tiff',
q//,
- '58a82998d620aba54b86ab8dca7cbfeb726f3e86842369d5a0292a8522e95dab' );
+ '0de2dcbf667c69ae6735d1a701b4038c1eeea25cc86981a496bb26fc82541835' );
#
# 4) Test 8-bit pseudocolor + matte channel image
testReadWrite( 'input_256_matte.tiff',
'output_256_matte.tiff',
q//,
- '824af58cdd8a8accffee3dab1ed9d28b34a8b183d3e5f5f13caeaab03bcadd13',
- '64b8429356cf9ea2b717faaa28a85b0f7ca174ea1a72063c1d4b2270084e4881' );
+ 'c8e5089f89ed3b7d067222e187ccd95da0a586f3a7f669876188fe8bfa04e6d9' );
#
# 5) Test truecolor image
testReadWrite( 'input_truecolor.tiff',
'output_truecolor.tiff',
q/quality=>55/,
- '2c5f5bcc5168543b807bf50476e472cd38e8d1a7d2c68df91e25ae7cd001166a' );
+ 'f72b63be472e5e730ee2635463c6643d11057d251709ffe1f2027f69b57449df' );
#
# 6) Test monochrome image
testReadWrite( 'input_mono.tiff',
'output_mono.tiff',
q//,
- 'dedb5873a990158f0e5abdebda8c8dfb32de0be16b2b191fcb476b754e000a7b' );
+ '71e1a6be223e307b1dbf732860792b15adba662b7a7ef284daf7f982f874ccf1' );
#
# 7) Test gray 4 bit image
testReadWrite( 'input_gray_4bit.tiff',
'output_gray_4bit.tiff',
q//,
- '3d58e49ad202f2b171214f7a0e8ebdc2ac2c7e45b68a2249502f9339ca7efc6e' );
+ 'e55c01b0d28b0a19431ba27203db7cb6ada189c9519d4466c44a764aad5e185a' );
#
# 8) Test gray 8 bit image
testReadWrite( 'input_gray_8bit.tiff',
'output_gray_8bit.tiff',
q//,
- '76f4dd783661899ede132a87a7c68132462d0a60efe92906388c3aca1fb76130' );
+ 'b51e862fcc24d439870da413c664dfefc36cea1260d807b3208d6f091566263c' );
#
# 9) Test gray 4 bit image (with matte channel)
testReadWrite( 'input_gray_4bit_matte.tiff',
'output_gray_4bit_matte.tiff',
q//,
- '817ebd9cb521eca754aa3add8100be1b7865dc54510b830d67a57c254832d3d5' );
+ 'aa1ccb94820722df3dbb8a84410b6e8f6d5a3e393e5b2204923a16182e0958b9' );
#
# 10) Test gray 8 bit image (with matte channel)
testReadWrite( 'input_gray_8bit_matte.tiff',
'output_gray_8bit_matte.tiff',
q//,
- '30206f5082b53a8f81d1b0e5dfec94b3513b15ee3fe87fb646a7fd5bf9c94c04' );
+ '6002e57537cd54733551f8c4269e8104f2b14f8fcc58a07eda61f5911eb11c80' );
testReadWrite( 'AVS:input.avs',
'AVS:output.avs',
q//,
- '646ac633d5b5553721e032d2c9f8f54ffc19d315832bbf808c2b7321b1067293');
+ '74136c90d3e699ea5bcbf4aa733aff0dc822b6af72fce00f0c7647bcb0d49f66');
print("Microsoft Windows bitmap image file ...\n");
++$test;
testReadWrite( 'BMP:input.bmp',
'BMP:output.bmp',
q//,
- 'e9b00f8a25976955cf8264391fc63f554396f4ac03d65cd0b1a2becbd667bc0b');
+ 'd7324c919f04f4c118da68061a5dbb3f07ebab76b471ecfb0ac822453f677983');
print("Microsoft Windows 24-bit bitmap image file ...\n");
++$test;
testReadWrite( 'BMP:input.bmp24',
'BMP:output.bmp24',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("ZSoft IBM PC multi-page Paintbrush file ...\n");
++$test;
testReadWrite( 'DCX:input.dcx',
'DCX:output.dcx',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("Microsoft Windows 3.X DIB file ...\n");
++$test;
testReadWrite( 'DIB:input.dib',
'DIB:output.dib',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("Flexible Image Transport System ...\n");
++$test;
testReadWrite( 'FITS:input.fits',
'FITS:output.fits',
q//,
- '72369bd71a89914a3db06b89b0b504d2b72d6cf4b8ecdf74ad3854cff05c2d33' );
+ '1c773aeac90d47c684c5170fcee16e0c8d4b399f76809c97bcd92ea7e47b1ab4' );
print("CompuServe graphics interchange format ...\n");
++$test;
testReadWrite( 'GIF:input.gif',
'GIF:output.gif',
q//,
- '4db1c9f8cf10c1a9a7e80397b4cf060d2d31caae13ba712712e6341fb96bd6b0',
- 'e9b00f8a25976955cf8264391fc63f554396f4ac03d65cd0b1a2becbd667bc0b');
+ 'd7324c919f04f4c118da68061a5dbb3f07ebab76b471ecfb0ac822453f677983');
print("CompuServe graphics interchange format (1987) ...\n");
++$test;
testReadWrite( 'GIF87:input.gif87',
'GIF87:output.gif87',
q//,
- 'a06fe5ec382d10ef6dce8d2bd729c4a57c66d82ed695e2786f1d1f280aaa17fb',
- '5c45e316eba35ac44cbe55c74b81259a1419f85264e5bb35b79db4a91bf0e3f1');
+ '153b1c806e673a635edc645a92c60d565b58a2aec2417cee1f2e507d8ede27e4');
print("Magick image file format ...\n");
++$test;
testReadWrite( 'MIFF:input.miff',
'MIFF:output.miff',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("MTV Raytracing image format ...\n");
++$test;
testReadWrite( 'MTV:input.mtv',
'MTV:output.mtv',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("Portable bitmap format (black and white), ASCII format ...\n");
++$test;
testReadWrite( 'PBM:input_p1.pbm',
'PBM:output_p1.pbm',
q/compression=>'None'/,
- 'dedb5873a990158f0e5abdebda8c8dfb32de0be16b2b191fcb476b754e000a7b');
+ '71e1a6be223e307b1dbf732860792b15adba662b7a7ef284daf7f982f874ccf1');
print("Portable bitmap format (black and white), binary format ...\n");
++$test;
testReadWrite( 'PBM:input_p4.pbm',
'PBM:output_p4.pbm',
q//,
- 'dedb5873a990158f0e5abdebda8c8dfb32de0be16b2b191fcb476b754e000a7b');
+ '71e1a6be223e307b1dbf732860792b15adba662b7a7ef284daf7f982f874ccf1');
print("ZSoft IBM PC Paintbrush file ...\n");
++$test;
testReadWrite( 'PCX:input.pcx',
'PCX:output.pcx',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("Portable graymap format (gray scale), ASCII format ...\n");
++$test;
testReadWrite( 'PGM:input_p2.pgm',
'PGM:output_p2.pgm',
q/compression=>'None'/,
- '63e162830260bb9892eb5a0e96301920e9cb4c6ed9016204dd58ededbb11923f');
+ 'f345fd06540c055028fd51b1d97a2144065dda8036ff23234313ed66f0b87254');
print("Apple Macintosh QuickDraw/PICT file ...\n");
++$test;
testReadWrite( 'PICT:input.pict',
'PICT:output.pict',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("Portable pixmap format (color), ASCII format ...\n");
++$test;
testReadWrite( 'PPM:input_p3.ppm',
'PPM:output_p3.ppm',
q/compression=>'None'/,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("Portable graymap format (gray scale), binary format ...\n");
++$test;
testReadWrite( 'PGM:input_p5.pgm',
'PGM:output_p5.pgm',
q//,
- '63e162830260bb9892eb5a0e96301920e9cb4c6ed9016204dd58ededbb11923f');
+ 'f345fd06540c055028fd51b1d97a2144065dda8036ff23234313ed66f0b87254');
print("Portable pixmap format (color), binary format ...\n");
++$test;
testReadWrite( 'PPM:input_p6.ppm',
'PPM:output_p6.ppm',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("Adobe Photoshop bitmap file ...\n");
++$test;
testReadWrite( 'PSD:input.psd',
'PSD:output.psd',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7' );
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
print("Irix RGB image file ...\n");
++$test;
testReadWrite( 'SGI:input.sgi',
'SGI:output.sgi',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("SUN 1-bit Rasterfile ...\n");
++$test;
testReadWrite( 'SUN:input.im1',
'SUN:output.im1',
q//,
- '678af4d3e2f78a1ef30cb1df2bd6f00b347082f5b3560257aacd9ac40fb47d63');
+ '49d4c40abae73a1d6169dc1f0262e89ad5dc8a9f64e7feef3430090768e629c4');
print("SUN 8-bit Rasterfile ...\n");
++$test;
testReadWrite( 'SUN:input.im8',
'SUN:output.im8',
q//,
- 'a4c13fd97d6b9b32c016793d6ae2b01cee048b5f2790de8daaacccdf1c4b6956',
- '8702000d509b897e48dc4834cf7fa1c2bf1a72ecc0d74a703e780f29b0835250');
+ '8ac3392ac643d8a852a4ac23dbf25f2124cb13627dbc60bf887b76ecb89cbb20');
print("SUN True-Color Rasterfile ...\n");
++$test;
testReadWrite( 'SUN:input.im24',
'SUN:output.im24',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("Truevision Targa image file ...\n");
++$test;
testReadWrite( 'TGA:input.tga',
'TGA:output.tga',
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');
print("Khoros Visualization image file ...\n");
++$test;
testReadWrite( 'VIFF:input.viff',
'VIFF:output.viff',
q//,
- 'c211b4dd4e0c3b1d42a96682b0d290ae6bed5652670abe3c7fcca54503611b3c',
- '43783afb71012dcc4860d856a171246019f555d402dad04f61a27e8db09ef58b');
+ 'b9ff3e1dbb1a4cd376e95645c0f0f950e3ae73973780bb1dfbc849b211fc3925');
print("WBMP (Wireless Bitmap (level 0) image) ...\n");
++$test;
testReadWrite( 'WBMP:input.wbmp',
'WBMP:output.wbmp',
q//,
- '49279b862c8528fd47023b65361c6fc7081677311893d6c80ce577d463a948d8');
+ '8833a92cbe11a3b925a1b7edffd6508d7b12dd50e3f4907ca8d77917f6e4e697');
print("X Windows system bitmap (black and white only) ...\n");
++$test;
testReadWrite( 'XBM:input.xbm',
'XBM:output.xbm',
q//,
- '38e65935f34b9814ce2c4d839ccd0438a3d8c2cfed93e6e0eb881787c28a91a4');
+ '49d4c40abae73a1d6169dc1f0262e89ad5dc8a9f64e7feef3430090768e629c4');
print("X Windows system pixmap file (color) ...\n");
++$test;
testReadWrite( 'XPM:input.xpm',
'XPM:output.xpm',
q//,
- 'a4c13fd97d6b9b32c016793d6ae2b01cee048b5f2790de8daaacccdf1c4b6956',
- '8702000d509b897e48dc4834cf7fa1c2bf1a72ecc0d74a703e780f29b0835250');
+ '8ac3392ac643d8a852a4ac23dbf25f2124cb13627dbc60bf887b76ecb89cbb20');
print("CMYK format ...\n");
++$test;
'70x46',
8,
q//,
- 'f39e32b55a8ed4b2cc12c431cfe64fd0462f9aa0fb0122066f4010b562d5fe47');
+ '215166c965254211b75dcaadbb587b4c2947d7cb3de1420b13b6539cd815a90d');
print("GRAY format ...\n");
++$test;
'70x46',
8,
q//,
- '6e885bb6b3f0edd30266f9c59f453f93452dd551bf4b2618938a377b8c8d0b66' );
+ '2f3d94bebb0feec1a2f0dcc295cbcf074ceb58e7e59262c3d23f0f26fd5e6267' );
print("RGB format ...\n");
++$test;
'70x46',
8,
q//,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7' );
-
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
print("RGBA format ...\n");
++$test;
'70x46',
8,
q//,
- '646ac633d5b5553721e032d2c9f8f54ffc19d315832bbf808c2b7321b1067293' );
+ '74136c90d3e699ea5bcbf4aa733aff0dc822b6af72fce00f0c7647bcb0d49f66' );
1;
testReadWrite( 'XWD:input.xwd',\r
'XWD:output.xwd',\r
q//,\r
- '6a4a257921582768b774aeeac549b7c0c0b51f665395eddf921cce53a0ad2a33');\r
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52');\r
# 1) Test reading Zip compressed MIFF
#
testRead( 'input.miff',
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7' );
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
#
# 3) Test reading Zip stream-compressed MIFF (.gz extension)
print("Reading Zip stream-compressed MIFF (.gz extension) ...\n");
++$test;
testRead( 'input.miff.gz',
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7' );
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
testReadWrite( 'input.miff',
'output.miff',
q/compression=>'Zip'/,
- 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7' );
+ 'fb6fc68beb3b1001c5ebaa671c8ac8fddea06995027127765ff508f77723cc52' );
$test = 0; # Quench PERL compliaint