- Add ImageMagick 6.8.3-1 sources
This commit is contained in:
parent
b8db71063c
commit
615ec83706
3424 changed files with 1398702 additions and 0 deletions
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input.mng
Normal file
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input.mng
Normal file
Binary file not shown.
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input_16.png
Normal file
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input_16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input_256.png
Normal file
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input_256.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input_bw.png
Normal file
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input_bw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 112 B |
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input_mono.png
Normal file
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input_mono.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 616 B |
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input_truecolor.png
Normal file
BIN
ImageMagick-6.8.3-1/PerlMagick/t/png/input_truecolor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
52
ImageMagick-6.8.3-1/PerlMagick/t/png/read-16.t
Normal file
52
ImageMagick-6.8.3-1/PerlMagick/t/png/read-16.t
Normal file
|
@ -0,0 +1,52 @@
|
|||
#!/usr/bin/perl
|
||||
#
|
||||
# Test reading PNG images when 16bit support is enabled
|
||||
#
|
||||
# Contributed by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
||||
#
|
||||
|
||||
BEGIN { $| = 1; $test=1; print "1..5\n"; }
|
||||
END {print "not ok $test\n" unless $loaded;}
|
||||
use Image::Magick;
|
||||
$loaded=1;
|
||||
|
||||
require 't/subroutines.pl';
|
||||
|
||||
chdir 't/png' || die 'Cd failed';
|
||||
|
||||
#
|
||||
# 1) Test Monochrome PNG
|
||||
#
|
||||
testRead( 'input_mono.png',
|
||||
'cda5c7a8ba8250de624af6dc825ad6772ebba3a7fa6da756c5b1ca228b62f8ac' );
|
||||
|
||||
#
|
||||
# 2) Test 256 color pseudocolor PNG
|
||||
#
|
||||
++$test;
|
||||
testRead( 'input_256.png',
|
||||
'066c0047c6e7e3f4cda1c86224441bfd5f522b5805b2a9190dcfa5294d94e4bd' );
|
||||
|
||||
#
|
||||
# 3) Test TrueColor PNG
|
||||
#
|
||||
++$test;
|
||||
testRead( 'input_truecolor.png',
|
||||
'55913611798c087b9300b14d3baeda08a142910ad120379a9308a6b8c8b2f6e8' );
|
||||
|
||||
#
|
||||
# 4) Test Multiple-image Network Graphics
|
||||
#
|
||||
++$test;
|
||||
testRead( 'input.mng',
|
||||
'40805ef3db6e3a94c85e30e591e5881dc660ff863591d6f56605dba64d03d83d' );
|
||||
|
||||
#
|
||||
# 5) Test 16-bit Portable Network Graphics
|
||||
#
|
||||
++$test;
|
||||
testRead( 'input_16.png',
|
||||
'6b6761c8108b1616e9411c4ef2564505715a37b93e86d2c824c9a4bca31bf47b',
|
||||
'82f48df83eec5bacbe2c38f13ce7e2219e5e318f4b2974d928d0ea7f7cec65fd',
|
||||
'a6619f482fee91a315f76cdcd8705d39b6ce11077c435ccc696142e130c27762' );
|
||||
|
64
ImageMagick-6.8.3-1/PerlMagick/t/png/read.t
Normal file
64
ImageMagick-6.8.3-1/PerlMagick/t/png/read.t
Normal file
|
@ -0,0 +1,64 @@
|
|||
#!/usr/bin/perl
|
||||
#
|
||||
# Test reading PNG images
|
||||
#
|
||||
# Contributed by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
||||
#
|
||||
|
||||
BEGIN { $| = 1; $test=1; print "1..6\n"; }
|
||||
END {print "not ok $test\n" unless $loaded;}
|
||||
use Image::Magick;
|
||||
$loaded=1;
|
||||
|
||||
require 't/subroutines.pl';
|
||||
|
||||
chdir 't/png' || die 'Cd failed';
|
||||
|
||||
#
|
||||
# 1) Test Black-and-white, bit_depth=1 PNG
|
||||
#
|
||||
print( "1-bit grayscale PNG ...\n" );
|
||||
testRead( 'input_bw.png',
|
||||
'349c2ff9310d578051e40e80d42cfc36ca29ba93e353df175219f7448da5eeee' );
|
||||
|
||||
#
|
||||
# 2) Test Monochrome PNG
|
||||
#
|
||||
++$test;
|
||||
print( "8-bit grayscale PNG ...\n" );
|
||||
testRead( 'input_mono.png',
|
||||
'cda5c7a8ba8250de624af6dc825ad6772ebba3a7fa6da756c5b1ca228b62f8ac' );
|
||||
|
||||
#
|
||||
# 3) Test 16-bit Portable Network Graphics
|
||||
#
|
||||
++$test;
|
||||
print( "16-bit grayscale PNG ...\n" );
|
||||
testRead( 'input_16.png',
|
||||
'6b6761c8108b1616e9411c4ef2564505715a37b93e86d2c824c9a4bca31bf47b',
|
||||
'82f48df83eec5bacbe2c38f13ce7e2219e5e318f4b2974d928d0ea7f7cec65fd',
|
||||
'a6619f482fee91a315f76cdcd8705d39b6ce11077c435ccc696142e130c27762' );
|
||||
#
|
||||
# 4) Test 256 color pseudocolor PNG
|
||||
#
|
||||
++$test;
|
||||
print( "8-bit indexed-color PNG ...\n" );
|
||||
testRead( 'input_256.png',
|
||||
'066c0047c6e7e3f4cda1c86224441bfd5f522b5805b2a9190dcfa5294d94e4bd' );
|
||||
|
||||
#
|
||||
# 5) Test TrueColor PNG
|
||||
#
|
||||
++$test;
|
||||
print( "24-bit Truecolor PNG ...\n" );
|
||||
testRead( 'input_truecolor.png',
|
||||
'55913611798c087b9300b14d3baeda08a142910ad120379a9308a6b8c8b2f6e8' );
|
||||
|
||||
#
|
||||
# 6) Test Multiple-image Network Graphics
|
||||
#
|
||||
++$test;
|
||||
print( "MNG with 24-bit Truecolor PNGs...\n" );
|
||||
testRead( 'input.mng',
|
||||
'40805ef3db6e3a94c85e30e591e5881dc660ff863591d6f56605dba64d03d83d' );
|
||||
|
61
ImageMagick-6.8.3-1/PerlMagick/t/png/write-16.t
Normal file
61
ImageMagick-6.8.3-1/PerlMagick/t/png/write-16.t
Normal file
|
@ -0,0 +1,61 @@
|
|||
#!/usr/bin/perl
|
||||
#
|
||||
# Test writing PNG images when 16bit support is enabled
|
||||
#
|
||||
# Contributed by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
||||
#
|
||||
BEGIN { $| = 1; $test=1; print "1..5\n"; }
|
||||
END {print "not ok $test\n" unless $loaded;}
|
||||
|
||||
use Image::Magick;
|
||||
$loaded=1;
|
||||
|
||||
require 't/subroutines.pl';
|
||||
|
||||
chdir 't/png' || die 'Cd failed';
|
||||
|
||||
#
|
||||
# 1) Test pseudocolor image
|
||||
#
|
||||
testReadWrite( 'input_256.png',
|
||||
'output_256.png',
|
||||
q/quality=>54/,
|
||||
'066c0047c6e7e3f4cda1c86224441bfd5f522b5805b2a9190dcfa5294d94e4bd' );
|
||||
|
||||
#
|
||||
# 2) Test truecolor image
|
||||
#
|
||||
++$test;
|
||||
testReadWrite( 'input_truecolor.png',
|
||||
'output_truecolor.png',
|
||||
q/quality=>55/,
|
||||
'55913611798c087b9300b14d3baeda08a142910ad120379a9308a6b8c8b2f6e8' );
|
||||
|
||||
#
|
||||
# 3) Test monochrome image
|
||||
#
|
||||
++$test;
|
||||
testReadWrite( 'input_mono.png',
|
||||
'output_mono.png', '',
|
||||
'cda5c7a8ba8250de624af6dc825ad6772ebba3a7fa6da756c5b1ca228b62f8ac' );
|
||||
|
||||
#
|
||||
# 4) Test Multiple-image Network Graphics
|
||||
#
|
||||
++$test;
|
||||
testReadWrite( 'input.mng',
|
||||
'output.mng',
|
||||
q/quality=>55/,
|
||||
'40805ef3db6e3a94c85e30e591e5881dc660ff863591d6f56605dba64d03d83d' );
|
||||
|
||||
#
|
||||
# 5) Test 16-bit Portable Network Graphics
|
||||
#
|
||||
++$test;
|
||||
testReadWrite( 'input_16.png',
|
||||
'output_16.png',
|
||||
q/quality=>55/,
|
||||
'fa6b164245b385b3dea5764074be2c959a503dde90ecb1d4ba9c76a46bb8e4e6',
|
||||
'82f48df83eec5bacbe2c38f13ce7e2219e5e318f4b2974d928d0ea7f7cec65fd');
|
||||
|
||||
|
68
ImageMagick-6.8.3-1/PerlMagick/t/png/write.t
Normal file
68
ImageMagick-6.8.3-1/PerlMagick/t/png/write.t
Normal file
|
@ -0,0 +1,68 @@
|
|||
#!/usr/bin/perl
|
||||
#
|
||||
# Test writing PNG images
|
||||
#
|
||||
# Contributed by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
||||
#
|
||||
BEGIN { $| = 1; $test=1; print "1..6\n"; }
|
||||
END {print "not ok $test\n" unless $loaded;}
|
||||
|
||||
use Image::Magick;
|
||||
$loaded=1;
|
||||
|
||||
require 't/subroutines.pl';
|
||||
|
||||
chdir 't/png' || die 'Cd failed';
|
||||
|
||||
#
|
||||
# 1) Test Black-and-white, bit_depth=1 PNG
|
||||
#
|
||||
print( "1-bit grayscale PNG ...\n" );
|
||||
testReadWrite( 'input_bw.png', 'output_bw.png', q/quality=>95/,
|
||||
'349c2ff9310d578051e40e80d42cfc36ca29ba93e353df175219f7448da5eeee');
|
||||
|
||||
#
|
||||
# 2) Test monochrome image
|
||||
#
|
||||
++$test;
|
||||
print( "8-bit grayscale PNG ...\n" );
|
||||
testReadWrite( 'input_mono.png',
|
||||
'output_mono.png', '',
|
||||
'cda5c7a8ba8250de624af6dc825ad6772ebba3a7fa6da756c5b1ca228b62f8ac');
|
||||
#
|
||||
# 3) Test 16-bit Portable Network Graphics
|
||||
#
|
||||
++$test;
|
||||
print( "16-bit grayscale PNG ...\n" );
|
||||
testReadWrite( 'input_16.png',
|
||||
'output_16.png',
|
||||
q/quality=>55/,
|
||||
'fa6b164245b385b3dea5764074be2c959a503dde90ecb1d4ba9c76a46bb8e4e6',
|
||||
'82f48df83eec5bacbe2c38f13ce7e2219e5e318f4b2974d928d0ea7f7cec65fd' );
|
||||
#
|
||||
# 4) Test pseudocolor image
|
||||
#
|
||||
++$test;
|
||||
print( "8-bit indexed-color PNG ...\n" );
|
||||
testReadWrite( 'input_256.png',
|
||||
'output_256.png',
|
||||
q/quality=>54/,
|
||||
'066c0047c6e7e3f4cda1c86224441bfd5f522b5805b2a9190dcfa5294d94e4bd' );
|
||||
#
|
||||
# 5) Test truecolor image
|
||||
#
|
||||
++$test;
|
||||
print( "24-bit Truecolor PNG ...\n" );
|
||||
testReadWrite( 'input_truecolor.png',
|
||||
'output_truecolor.png',
|
||||
q/quality=>55/,
|
||||
'55913611798c087b9300b14d3baeda08a142910ad120379a9308a6b8c8b2f6e8' );
|
||||
#
|
||||
# 6) Test Multiple-image Network Graphics
|
||||
#
|
||||
++$test;
|
||||
print( "MNG with 24-bit Truecolor PNGs ...\n" );
|
||||
testReadWrite( 'input.mng',
|
||||
'output.mng',
|
||||
q/quality=>55/,
|
||||
'40805ef3db6e3a94c85e30e591e5881dc660ff863591d6f56605dba64d03d83d' );
|
Loading…
Add table
Add a link
Reference in a new issue