2 # Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization
3 # dedicated to making software imaging solutions freely available.
5 # You may not use this file except in compliance with the License. You may
6 # obtain a copy of the License at
8 # http://www.imagemagick.org/script/license.php
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # Test setting & getting attributes.
18 BEGIN { $| = 1; $test=1, print "1..71\n"; }
19 END {print "not ok 1\n" unless $loaded;}
23 require 't/subroutines.pl';
25 chdir 't' || die 'Cd failed';
27 # Determine if QuantumMagick is defined
28 $image=Image::Magick->new;
29 my $depth = $image->Get('depth');
31 testSetAttribute('input.miff','adjoin','True');
34 testSetAttribute('input.miff','adjoin','False');
37 testSetAttribute('input.miff','antialias','True');
40 testSetAttribute('input.miff','antialias','False');
43 testSetAttribute('input.miff','compression','None');
46 testSetAttribute('input.miff','compression','JPEG');
49 testSetAttribute('input.miff','compression','LZW');
52 testSetAttribute('input.miff','compression','RLE');
55 testSetAttribute('input.miff','compression','Zip');
58 testSetAttribute('input.miff','density','72x72');
61 testSetAttribute('input.miff','dispose','Undefined');
64 testSetAttribute('input.miff','dispose','None');
67 testSetAttribute('input.miff','dispose','Background');
70 testSetAttribute('input.miff','dispose','Previous');
73 testSetAttribute('input.miff','delay',100);
76 testSetAttribute('input.miff','dither','True');
79 testSetAttribute('input.miff','dither','False');
82 testSetAttribute('input.miff','display','bogus:0.0');
85 testSetAttribute('input.miff','filename','bogus.jpg');
88 testSetAttribute('input.miff','font',q/-*-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-*/);
91 testSetAttribute('input.miff','iterations',10);
94 testSetAttribute('input.miff','interlace','None');
97 testSetAttribute('input.miff','interlace','Line');
100 testSetAttribute('input.miff','interlace','Plane');
103 testSetAttribute('input.miff','interlace','Partition');
106 testSetAttribute('input.miff','loop',100);
109 testSetAttribute('input.miff','magick','TIFF');
112 testSetAttribute('input.miff','monochrome','True');
115 testSetAttribute('input.miff','monochrome','False');
118 testSetAttribute('input.miff','page','595x842+0+0');
121 testSetAttribute('input.miff','pointsize',12);
124 testSetAttribute('input.miff','preview','Rotate');
127 testSetAttribute('input.miff','preview','Shear');
130 testSetAttribute('input.miff','preview','Roll');
133 testSetAttribute('input.miff','preview','Hue');
136 testSetAttribute('input.miff','preview','Saturation');
139 testSetAttribute('input.miff','preview','Brightness');
142 testSetAttribute('input.miff','preview','JPEG');
145 testSetAttribute('input.miff','preview','Spiff');
148 testSetAttribute('input.miff','preview','Dull');
151 testSetAttribute('input.miff','preview','Grayscale');
154 testSetAttribute('input.miff','preview','Quantize');
157 testSetAttribute('input.miff','preview','Despeckle');
160 testSetAttribute('input.miff','preview','ReduceNoise');
163 testSetAttribute('input.miff','preview','AddNoise');
166 testSetAttribute('input.miff','preview','Sharpen');
169 testSetAttribute('input.miff','preview','Blur');
172 testSetAttribute('input.miff','preview','Threshold');
175 testSetAttribute('input.miff','preview','EdgeDetect');
178 testSetAttribute('input.miff','preview','Spread');
181 testSetAttribute('input.miff','preview','Solarize');
184 testSetAttribute('input.miff','preview','Shade');
187 testSetAttribute('input.miff','preview','Raise');
190 testSetAttribute('input.miff','preview','Segment');
193 testSetAttribute('input.miff','preview','Solarize');
196 testSetAttribute('input.miff','preview','Swirl');
199 testSetAttribute('input.miff','preview','Implode');
202 testSetAttribute('input.miff','preview','Wave');
205 testSetAttribute('input.miff','preview','OilPaint');
208 testSetAttribute('input.miff','preview','Charcoal');
211 testSetAttribute('input.miff','quality',25);
214 testSetAttribute('input.miff','scene',5);
217 testSetAttribute('input.miff','subimage',9);
220 testSetAttribute('input.miff','subrange',16);
223 testSetAttribute('input.miff','server','mymachine:0.0');
226 testSetAttribute('input.miff','size','25x25');
229 testSetAttribute('input.miff','size','25x25');
231 # I have no idea what this does
233 testSetAttribute('input.miff','tile','some value');
236 testSetAttribute('input.miff','texture','granite:');
239 testSetAttribute('input.miff','verbose','True');
242 testSetAttribute('input.miff','verbose','False');