You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
#!/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',
|
|
'fa43f8c3d45c3efadab6791a6de83b5a303f65e2c1d58e0814803a4846e68593' );
|
|
|
|
#
|
|
# 2) Test 256 color pseudocolor PNG
|
|
#
|
|
++$test;
|
|
testRead( 'input_256.png',
|
|
'5798b9623e5922d3f6c0e87ae76ccc5a69568258e557613f20934f2de6ee2d35' );
|
|
|
|
#
|
|
# 3) Test TrueColor PNG
|
|
#
|
|
++$test;
|
|
testRead( 'input_truecolor.png',
|
|
'eb9adaa26f3cda80273f436ddb92805da2cb88dd032d24380cd48cf05432a326' );
|
|
|
|
#
|
|
# 4) Test Multiple-image Network Graphics
|
|
#
|
|
++$test;
|
|
testRead( 'input.mng',
|
|
'65c0eacf6e060b9fb8467eaa0f74e2dcc3ef72d06577f06a506bd0546b01fb61' );
|
|
|
|
#
|
|
# 5) Test 16-bit Portable Network Graphics
|
|
#
|
|
++$test;
|
|
testRead( 'input_16.png',
|
|
'6418d8dd1206c3566bac92a883196d448b4d3cc7c19581d95d43bda4f0b7e495',
|
|
'2d30a8bed1ae8bd19c8320e861f3140dfc7497ca8a05d249734ab41c71272f08');
|
|
|