Home | History | Annotate | Download | only in jpeg
      1 #!/usr/bin/perl
      2 #
      3 # Test reading JPEG images
      4 #
      5 # Contributed by Bob Friesenhahn <bfriesen (at] simple.dallas.tx.us>
      6 #
      7 BEGIN { $| = 1; $test=1; print "1..2\n"; }
      8 END {print "not ok $test\n" unless $loaded;}
      9 
     10 use Image::Magick;
     11 $loaded=1;
     12 
     13 require 't/subroutines.pl';
     14 
     15 chdir 't/jpeg' || die 'Cd failed';
     16 
     17 #
     18 # 1) Test with non-interlaced image
     19 #
     20 print( "Non-interlaced JPEG ...\n" );
     21 testReadWriteCompare( 'input.jpg', 'output_tmp.jpg',
     22                       '../reference/jpeg/write_non_interlaced.miff',
     23                       q//, q//, 0.00001, 0.04);
     24 
     25 #
     26 # 2) Test with plane-interlaced image
     27 #
     28 ++$test;
     29 print( "Plane-interlaced JPEG ...\n" );
     30 testReadWriteCompare( 'input.jpg', 'output_plane_tmp.jpg',
     31                       '../reference/jpeg/write_plane_interlaced.miff',
     32                       q//, q//, 0.00001, 0.04);
     33 
     34