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