#!/usr/bin/perl # # Test read image method on non-interlaced JPEG. # # Contributed by Bob Friesenhahn # BEGIN { $| = 1; $test=1; print "1..2\n"; } END {print "not ok $test\n" unless $loaded;} use Image::Magick; $loaded=1; require 't/subroutines.pl'; chdir 't/jpeg' || die 'Cd failed'; # # 1) Test non-interlaced image read # print( "Non-interlaced JPEG ...\n" ); testReadCompare('input.jpg', '../reference/jpeg/read_non_interlaced.miff', q//, 0.00001, 0.12); # # 2) Test plane-interlaced image read # ++$test; print( "Plane-interlaced JPEG ...\n" ); testReadCompare('input_plane.jpg', '../reference/jpeg/read_plane_interlaced.miff', q//, 0.00001, 0.12);