2
# Copyright (C) 2003 GraphicsMagick Group
3
# Copyright (C) 2002 ImageMagick Studio
4
# Copyright (C) 1991-1999 E. I. du Pont de Nemours and Company
6
# This program is covered by multiple licenses, which are described in
7
# Copyright.txt. You should have received a copy of Copyright.txt with this
8
# package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
11
# Test reading JPEG images
13
# Contributed by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
15
BEGIN { $| = 1; $test=1; print "1..2\n"; }
16
END {print "not ok $test\n" unless $loaded;}
21
require 't/subroutines.pl';
23
chdir 't/jpeg' || die 'Cd failed';
26
# 1) Test with non-interlaced image
28
print( "Non-interlaced JPEG ...\n" );
29
testReadWriteCompare( 'input.jpg', 'output_tmp.jpg',
30
'../reference/jpeg/write_non_interlaced.miff',
31
q//, q//, 6.4e-5, 0.008);
34
# 2) Test with plane-interlaced image
37
print( "Plane-interlaced JPEG ...\n" );
38
testReadWriteCompare( 'input.jpg', 'output_plane_tmp.jpg',
39
'../reference/jpeg/write_plane_interlaced.miff',
40
q//, q//, 6.4e-5, 0.008);