~ubuntu-branches/ubuntu/quantal/gallery2/quantal

« back to all changes in this revision

Viewing changes to modules/imagemagick/test/phpunit/ImEnvironments.inc

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2007-09-10 20:22:19 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070910202219-0jsuntvqge4ade6b
Tags: 2.2.3-2
Add Slovak translation of Debconf templates.  (Thanks to 
Ivan Masá.  Closes: #441671)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/*
3
 
 * Gallery - a web based photo album viewer and editor
4
 
 * Copyright (C) 2000-2007 Bharat Mediratta
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or (at
9
 
 * your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful, but
12
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 
 * General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
19
 
 */
20
 
/**
21
 
 * @version $Revision: 15513 $
22
 
 * @package ImageMagick
23
 
 * @subpackage PHPUnit
24
 
 * @author Ernesto Baschny <ernst@baschny.de>
25
 
 */
26
 
 
27
 
/*
28
 
 * This file contain information to emulate specific ImageMagick/GraphicsMagick
29
 
 * installations. They are used by the ImageMagickToolkitTestPlatform.
30
 
 */
31
 
 
32
 
/*
33
 
 * Those are the default operations for all IM-environments.
34
 
 * Any element can be overridden in each environments definition below.
35
 
 */
36
 
$_commonOperations = array(
37
 
    'thumbnail' => array(
38
 
        'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%',
39
 
                           '+profile', '*', '%src%', '%dst%'),
40
 
    ),
41
 
    'scale' => array(
42
 
        'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%',
43
 
                           '%src%', '%dst%'),
44
 
    ),
45
 
    'resize' => array(
46
 
        'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%',
47
 
                           '%src%', '%dst%'),
48
 
    ),
49
 
    'crop' => array(
50
 
        'convert' => array('-crop', '%width%x%height%+%x%+%y%', '%src%', '%dst%'),
51
 
    ),
52
 
    'rotate' => array(
53
 
        'convert' => array('-rotate', '%angle%', '%src%', '%dst%'),
54
 
    ),
55
 
    'convert-to-image/jpeg' => array(
56
 
        'convert' => array('%src%', 'jpeg:%dst%'),
57
 
    ),
58
 
    'composite' => array(
59
 
        'composite' => array('-geometry', '+%x%+%y%', '%image%', '%src%', '%dst%'),
60
 
    ),
61
 
    'convert-to-image/png' => array(
62
 
        'convert' => array('%src%', 'png:%dst%'),
63
 
    ),
64
 
    'select-page' => array(
65
 
        'convert' => array('%src%', '%dst%'),
66
 
    ),
67
 
    'compress' => array(
68
 
        'convert' => array('%src%', '%dst%'),
69
 
    ),
70
 
);
71
 
 
72
 
/* --------------------------------------------------------------------------
73
 
 * ImageMagick 4.2.9
74
 
 * --------------------------------------------------------------------------
75
 
 */
76
 
$imEnvironment[] = array(
77
 
        'name' => 'ImageMagick',
78
 
        'version' => '4.2.9',
79
 
        'binary' => '',
80
 
        'mimeTypes' => array(
81
 
                'image/gif',
82
 
                'image/jpeg',
83
 
                'image/pjpeg',
84
 
                'image/png',
85
 
                'image/tiff',
86
 
                'image/bmp',
87
 
                'application/pdf',
88
 
                'application/postscript',
89
 
        ),
90
 
        'binaries' => array(
91
 
                'animate',
92
 
                'combine',
93
 
                'convert',
94
 
                'display',
95
 
                'identify',
96
 
                'import',
97
 
                'mogrify',
98
 
                'montage',
99
 
                'xtp',
100
 
        ),
101
 
        'removeMetaDataSwitch' => array(),
102
 
        'operations' => array_merge($_commonOperations, array(
103
 
            'thumbnail' => array(
104
 
                'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%',
105
 
                                   '%src%', '%dst%'),
106
 
            ),
107
 
            'scale' => array(
108
 
                'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%',
109
 
                                   '%src%', '%dst%'),
110
 
            ),
111
 
            'composite' => array(
112
 
                'combine' => array('-geometry', '+%x%+%y%', '%image%', '%src%', '%dst%'),
113
 
            ),
114
 
        )),
115
 
        'identify' => array(
116
 
                '' => 'Version: @(#)ImageMagick 4.2.9 99/09/01 cristy@mystic.es.dupont.com
117
 
Copyright: Copyright 1999 E. I. du Pont de Nemours and Company
118
 
 
119
 
Usage: identify [ options ... ] file [ file ... ]
120
 
 
121
 
Where options include:
122
 
  -ping           efficiently determine image characteristics
123
 
  -size geometry  width and height of image
124
 
  -verbose        print detailed information about the image
125
 
',
126
 
                'UNKNOWN' => 'identify: no delegate for this image format ().
127
 
identify: Missing an image file name [No such file or directory].',
128
 
                'test-compressed.tif' =>
129
 
'identify: test-compressed.tif: unknown field with tag 700 (0x2bc) ignored..
130
 
identify: test-compressed.tif: unknown field with tag 34665 (0x8769) ignored..
131
 
test-compressed.tif 50x50 DirectClass 8000b TIFF 1s',
132
 
                'test-multiscene.tif' => 'test-multiscene.tif[0] 100x75 DirectClass 44kb TIFF 1s
133
 
test-multiscene.tif[1] 100x75 DirectClass 44kb TIFF 1s',
134
 
                'test.bmp' => 'test.bmp 50x50 PseudoClass 15c 504b BMP 1s',
135
 
                'SIZED.gif' => '%filename% %width%x%height%+0+0 DirectClass 232b GIF 1s',
136
 
                'test.gif' => 'test.gif 50x50+0+0 DirectClass 232b GIF 1s',
137
 
                'test.jpg' => 'test.jpg 50x50 DirectClass 763b JPEG 1s',
138
 
                'test.jp2' => 'identify: no delegate for this image format (JP2).
139
 
identify: Missing an image file name [No such file or directory].',
140
 
                'test.pdf' => 'test.pdf=>/tmp/magicFnmgfF[0] 612x792 PseudoClass 256c 29kb PDF 1s
141
 
test.pdf=>/tmp/magicFnmgfF[1] 612x792 PseudoClass 256c 29kb PDF 1s',
142
 
                'test.pjpg' => 'test.pjpg 50x50 DirectClass 970b JPEG 1s',
143
 
                'test.png' => 'test.png 50x50 DirectClass 730b PNG 1s',
144
 
                'test.svg' => 'identify: no delegate for this image format (SVG).
145
 
identify: Missing an image file name [No such file or directory].',
146
 
                'test.tif' => 'test.tif 50x50 PseudoClass 256c 2729b TIFF 1s',
147
 
                'test.eps' => 'test.eps[0] 43x18 PseudoClass 2c 3141b PS 1s
148
 
test.eps[1] 43x18 PseudoClass 2c 3141b PS 1s',
149
 
                'test.wmf' => 'identify: no delegate for this image format (WMF)',
150
 
                'test.tga' => 'identify: no delegate for this image format (TGA)',
151
 
                'testProfile.jpg' => 'testProfile.jpg 40x30 DirectClass 29kb JPEG 1s',
152
 
                '-format' => array('cmyk.jpg' => 'Does4.xWork?'),
153
 
        ),
154
 
);
155
 
 
156
 
/* --------------------------------------------------------------------------
157
 
 * ImageMagick 5.4.2
158
 
 * --------------------------------------------------------------------------
159
 
 */
160
 
$imEnvironment[] = array(
161
 
        'name' => 'ImageMagick',
162
 
        'version' => '5.4.2',
163
 
        'binary' => '',
164
 
        'mimeTypes' => array(
165
 
                'image/gif',
166
 
                'image/jpeg',
167
 
                'image/pjpeg',
168
 
                'image/png',
169
 
                'image/tiff',
170
 
                'image/svg+xml',
171
 
                'image/bmp',
172
 
                'application/pdf',
173
 
                'application/postscript',
174
 
                'application/photoshop',
175
 
        ),
176
 
        'binaries' => array(
177
 
                'animate',
178
 
                'composite',
179
 
                'conjure',
180
 
                'convert',
181
 
                'display',
182
 
                'identify',
183
 
                'import',
184
 
                'mogrify',
185
 
                'montage',
186
 
                'xtp',
187
 
        ),
188
 
        'removeMetaDataSwitch' => array('+profile', '*'),
189
 
        'operations' => $_commonOperations,
190
 
        'identify' => array(
191
 
                '' => 'Version: @(#)ImageMagick 5.4.2 01/01/02 Q:16 http://www.imagemagick.org
192
 
Copyright: Copyright (C) 2002 ImageMagick Studio LLC
193
 
 
194
 
Usage: identify [ -option value ... ] file [ file ... ]
195
 
 
196
 
Where options include:
197
 
  -cache threshold   megabytes of memory available to the pixel cache
198
 
  -debug             display copious debugging information
199
 
  -density geometry  vertical and horizontal density of the image
200
 
  -depth value       depth of the image
201
 
  -format "string"   output formatted image characteristics
202
 
  -help              print program options
203
 
  -size geometry     width and height of image
204
 
  -verbose           print detailed information about the image
205
 
',
206
 
                'UNKNOWN' => 'identify: Unable to open file (NOTHING) [No such file or directory].
207
 
identify: Missing an image file name.',
208
 
                'SIZED.gif' =>
209
 
                    '%filename% GIF %width%x%height%+0+0 PseudoClass 8c 8-bit 232b 0.0u 0:01',
210
 
                'test-compressed.tif' => 'identify: unknown field ' .
211
 
'with tag 34665 (0x8769) ignored. (test-compressed.tif) [No such file or directory].
212
 
test-compressed.tif TIFF 50x50 DirectClass 8-bit 8000b 0.0u 0:01',
213
 
                'test-multiscene.tif' =>
214
 
'test-multiscene.tif[0] TIFF 100x75 DirectClass 8-bit 45814b 0.0u 0:01
215
 
test-multiscene.tif[1] TIFF 100x75 DirectClass 8-bit 45814b 0.0u 0:01',
216
 
                'test.bmp' => 'test.bmp BMP 50x50 PseudoClass 15c 8-bit 504b 0.0u 0:01',
217
 
                'test.gif' => 'test.gif GIF 50x50+0+0 PseudoClass 8c 8-bit 232b 0.0u 0:01',
218
 
                'test.jpg' => 'test.jpg JPEG 50x50 DirectClass 8-bit 763b 0.0u 0:01',
219
 
                'test.jp2' =>
220
 
'identify: no delegate for this image format (test.jp2) [No such file or directory].
221
 
identify: Missing an image file name.',
222
 
                'test.pdf' => 'test.pdf[0] PDF 612x792 DirectClass 8-bit 2840kb 0.1u 0:01
223
 
test.pdf[1] PDF 612x792 DirectClass 8-bit 2840kb 0.0u 0:01',
224
 
                'test.pjpg' => 'test.pjpg JPEG 50x50 DirectClass 8-bit 970b 0.0u 0:01',
225
 
                'test.png' => 'test.png PNG 50x50 DirectClass 8-bit 730b 0.0u 0:01',
226
 
                'test.svg' => 'test.svg SVG 595x841+0+0 DirectClass 16-bit 7.8kb 0.08u 0:01',
227
 
                'test.tif' => 'test.tif TIFF 50x50 PseudoClass 256c 8-bit 2729b 0.0u 0:01',
228
 
                'test.eps' => 'test.eps PS 43x18 DirectClass 8-bit 2388b 0.0u 0:01',
229
 
                'test.psd' => 'test.psd PSD 178x80+0+0 DirectClass 8-bit 127.1kb 0.000u 0:01',
230
 
                'test.wmf' =>
231
 
'identify: no delegate for this image format (test.wmf) [No such file or directory].
232
 
identify: Missing an image file name.',
233
 
                'test.tga' =>
234
 
'identify: no delegate for this image format (test.tga) [No such file or directory].
235
 
identify: Missing an image file name.',
236
 
                'testProfile.jpg' =>
237
 
                    'testProfile.jpg JPEG 40x30 DirectClass 8-bit 30585b 0.0u 0:01',
238
 
                '-format' => array('cmyk.jpg' => "DirectClassCMYK\n",
239
 
                                   'rgb_file' => "DirectClassCMYK\n"), /* Fails to convert to RGB */
240
 
        ),
241
 
);
242
 
 
243
 
/* --------------------------------------------------------------------------
244
 
 * ImageMagick 6.0.7
245
 
 * --------------------------------------------------------------------------
246
 
 */
247
 
 
248
 
$imEnvironment[] = array(
249
 
        'name' => 'ImageMagick',
250
 
        'version' => '6.0.7',
251
 
        'binary' => '',
252
 
        'mimeTypes' => array(
253
 
                'image/gif',
254
 
                'image/jpeg',
255
 
                'image/pjpeg',
256
 
                'image/jp2',
257
 
                'image/jpg2',
258
 
                'image/jpx',
259
 
                'image/png',
260
 
                'image/tiff',
261
 
                'image/svg+xml',
262
 
                'image/bmp',
263
 
                'application/pdf',
264
 
                'application/postscript',
265
 
                'application/photoshop',
266
 
                'image/wmf',
267
 
                'image/tga',
268
 
                'image/jpeg-cmyk',
269
 
                'image/tiff-cmyk',
270
 
                'application/photoshop-cmyk',
271
 
        ),
272
 
        'binaries' => array(
273
 
                'animate',
274
 
                'compare',
275
 
                'composite',
276
 
                'conjure',
277
 
                'convert',
278
 
                'display',
279
 
                'identify',
280
 
                'import',
281
 
                'mogrify',
282
 
                'montage',
283
 
        ),
284
 
        'removeMetaDataSwitch' => array('+profile', '*'),
285
 
        'operations' => array_merge($_commonOperations, array(
286
 
            'convert-to-image/jpeg' => array(
287
 
                'convert' => array('-colorspace', 'RGB', '%src%', 'jpeg:%dst%')))),
288
 
        'identify' => array(
289
 
                '' => 'Version: ImageMagick 6.0.7 09/11/04 Q16 http://www.imagemagick.org
290
 
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
291
 
Usage: identify [options ...] file [ [options ...] file ... ]
292
 
 
293
 
Where options include:
294
 
  -authenticate value  decrypt image with this password
295
 
  -channel type        Red, Green, Blue, Opacity, Index, Cyan, Yellow,
296
 
                       Magenta, Black, or All
297
 
  -debug events        display copious debugging information
298
 
  -define format:option
299
 
                       define one or more image format options
300
 
  -density geometry    horizontal and vertical density of the image
301
 
  -depth value         image depth
302
 
  -extract geometry    extract area from image
303
 
  -format "string"     output formatted image characteristics
304
 
  -fuzz distance       colors within this distance are considered equal
305
 
  -help                print program options
306
 
  -interlace type      None, Line, Plane, or Partition
307
 
  -limit type value    Area, Disk, Map, or Memory resource limit
308
 
  -list type           Color, Configure, Delegate, Format, Magic, Module,
309
 
                       Resource, or Type
310
 
  -log format          format of debugging information
311
 
  -sampling-factor geometry
312
 
                       horizontal and vertical sampling factor
313
 
  -size geometry       width and height of image
314
 
  -strip               strip image of all profiles and comments
315
 
  -verbose             print detailed information about the image
316
 
  -version             print version information
317
 
  -virtual-pixel method
318
 
                       Constant, Edge, Mirror, or Tile
319
 
',
320
 
                'UNKNOWN' => 'identify: unable to open image `UNKNOWN\': No such file or directory.
321
 
identify: missing an image filename `UNKNOWN\'.',
322
 
                'test-compressed.tif' => 'identify: unknown field with tag 34665 (0x8769) ignored..
323
 
test-compressed.tif TIFF 50x50 DirectClass 8kb 0.110u 0:01',
324
 
                'test-multiscene.tif' =>
325
 
'test-multiscene.tif[0] TIFF 100x75 DirectClass 45kb 0.000u 0:01
326
 
test-multiscene.tif[1] TIFF 100x75 DirectClass 45kb 0.000u 0:01',
327
 
                'test.bmp' => 'test.bmp BMP 50x50 PseudoClass 15c 504 0.000u 0:01',
328
 
                'SIZED.gif' =>
329
 
'%filename% GIF %width%x%height% %width%x%height%+0+0 PseudoClass 8c 232 0.000u 0:01',
330
 
                'test.gif' => 'test.gif GIF 50x50 50x50+0+0 PseudoClass 8c 232 0.000u 0:01',
331
 
                'test.jpg' => 'test.jpg JPEG 88x40 PseudoClass 256c 986 0.010u 0:01',
332
 
                'test.jp2' => 'test.jp2 JP2 50x50 DirectClass 1kb 0.020u 0:01',
333
 
                'test.pdf' =>
334
 
'test.pdf[0] PDF 612x792 612x792+0+0 PseudoClass 256c 947kb 0.060u 0:01
335
 
test.pdf[1] PDF 612x792 612x792+0+0 PseudoClass 256c 947kb 0.030u 0:01',
336
 
                'test.pjpg' => 'test.pjpg JPEG 50x50 DirectClass 970 0.010u 0:01',
337
 
                'test.png' => 'test.png PNG 50x50 DirectClass 730 0.000u 0:01',
338
 
                'test.svg' => 'test.svg SVG 595x842 DirectClass 8kb 0.020u 0:01',
339
 
                'test.tif' => 'test.tif TIFF 50x50 PseudoClass 256c 3kb 0.000u 0:01',
340
 
                'test.eps' => 'test.eps PS 43x18 43x18+0+0 PseudoClass 2c 170 0.000u 0:01',
341
 
                'test.psd' => 'test.psd PSD 178x80+0+0 DirectClass 8-bit 127.1kb 0.000u 0:01',
342
 
                'test.wmf' => 'test.wmf WMF 3x3 DirectClass 408 0.020u 0:01',
343
 
                'test.tga' => 'test.tga TGA 3x3 DirectClass 54 0.020u 0:01',
344
 
                'testProfile.jpg' => 'testProfile.jpg JPEG 40x30 DirectClass 30kb 0.010u 0:01',
345
 
                '-format' => array('cmyk.jpg' => 'DirectClassCMYK',
346
 
                                   'rgb_file' => 'DirectClassRGB'),
347
 
        ),
348
 
);
349
 
 
350
 
/* --------------------------------------------------------------------------
351
 
 * ImageMagick 6.1.3
352
 
 * --------------------------------------------------------------------------
353
 
 */
354
 
 
355
 
$imEnvironment[] = array(
356
 
        'name' => 'ImageMagick',
357
 
        'version' => '6.1.3',
358
 
        'binary' => '',
359
 
        'mimeTypes' => array(
360
 
                'image/gif',
361
 
                'image/jpeg',
362
 
                'image/pjpeg',
363
 
                'image/jp2',
364
 
                'image/jpg2',
365
 
                'image/jpx',
366
 
                'image/png',
367
 
                'image/tiff',
368
 
                'image/svg+xml',
369
 
                'image/bmp',
370
 
                'application/pdf',
371
 
                'application/postscript',
372
 
                'application/photoshop',
373
 
                'image/wmf',
374
 
                'image/tga',
375
 
                'image/jpeg-cmyk',
376
 
                'image/tiff-cmyk',
377
 
                'application/photoshop-cmyk',
378
 
        ),
379
 
        'binaries' => array(
380
 
                'animate',
381
 
                'compare',
382
 
                'composite',
383
 
                'conjure',
384
 
                'convert',
385
 
                'display',
386
 
                'identify',
387
 
                'import',
388
 
                'mogrify',
389
 
                'montage',
390
 
        ),
391
 
        'removeMetaDataSwitch' => array('-strip'),
392
 
        'operations' => array_merge($_commonOperations, array(
393
 
            'thumbnail' =>
394
 
                array('convert' => array('-size', '%width%x%height%',
395
 
                      '-geometry', '%width%x%height%', '-strip', '%src%', '%dst%')),
396
 
            'convert-to-image/jpeg' => array(
397
 
                'convert' => array('-colorspace', 'RGB', '%src%', 'jpeg:%dst%')))),
398
 
        'identify' => array(
399
 
                '' => 'Version: ImageMagick 6.1.3 11/01/04 Q16 http://www.imagemagick.org
400
 
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
401
 
 
402
 
Usage: identify [options ...] file [ [options ...] file ... ]
403
 
 
404
 
Where options include:
405
 
  -authenticate value  decrypt image with this password
406
 
  -channel type        Red, Green, Blue, Opacity, Index, Cyan, Yellow,
407
 
                       Magenta, Black, or All
408
 
  -debug events        display copious debugging information
409
 
  -define format:option
410
 
                       define one or more image format options
411
 
  -density geometry    horizontal and vertical density of the image
412
 
  -depth value         image depth
413
 
  -extract geometry    extract area from image
414
 
  -format "string"     output formatted image characteristics
415
 
  -fuzz distance       colors within this distance are considered equal
416
 
  -help                print program options
417
 
  -interlace type      None, Line, Plane, or Partition
418
 
  -limit type value    Area, Disk, Map, or Memory resource limit
419
 
  -list type           Color, Configure, Delegate, Format, Magic, Module,
420
 
                       Resource, or Type
421
 
  -log format          format of debugging information
422
 
  -sampling-factor geometry
423
 
                       horizontal and vertical sampling factor
424
 
  -size geometry       width and height of image
425
 
  -strip               strip image of all profiles and comments
426
 
  -units type          PixelsPerInch, PixelsPerCentimeter, or Undefined
427
 
  -verbose             print detailed information about the image
428
 
  -version             print version information
429
 
  -virtual-pixel method
430
 
                       Constant, Edge, Mirror, or Tile
431
 
',
432
 
                'UNKNOWN' => 'identify: unable to open image `UNKNOWN\': No such file or directory.
433
 
identify: missing an image filename `UNKNOWN\'.',
434
 
                'test-compressed.tif' =>
435
 
'identify: unknown field with tag 34665 (0x8769) ignored..
436
 
test-compressed.tif TIFF 50x50 DirectClass 8kb 0.110u 0:01',
437
 
                'test-multiscene.tif' =>
438
 
'test-multiscene.tif[0] TIFF 100x75 DirectClass 45kb 0.000u 0:01
439
 
test-multiscene.tif[1] TIFF 100x75 DirectClass 45kb 0.000u 0:01',
440
 
                'test.bmp' => 'test.bmp BMP 50x50 PseudoClass 15c 504 0.000u 0:01',
441
 
                'SIZED.gif' =>
442
 
'%filename% GIF %width%x%height% %width%x%height%+0+0 PseudoClass 8c 232 0.000u 0:01',
443
 
                'test.gif' => 'test.gif GIF 50x50 50x50+0+0 PseudoClass 8c 232 0.000u 0:01',
444
 
                'test.jpg' => 'test.jpg JPEG 88x40 PseudoClass 256c 986 0.010u 0:01',
445
 
                'test.jp2' => 'test.jp2 JP2 50x50 DirectClass 1kb 0.020u 0:01',
446
 
                'test.pdf' =>
447
 
'test.pdf[0] PDF 612x792 612x792+0+0 PseudoClass 256c 947kb 0.060u 0:01
448
 
test.pdf[1] PDF 612x792 612x792+0+0 PseudoClass 256c 947kb 0.030u 0:01',
449
 
                'test.pjpg' => 'test.pjpg JPEG 50x50 DirectClass 970 0.010u 0:01',
450
 
                'test.png' => 'test.png PNG 50x50 DirectClass 730 0.000u 0:01',
451
 
                'test.svg' => 'test.svg SVG 595x842 DirectClass 8kb 0.020u 0:01',
452
 
                'test.tif' => 'test.tif TIFF 50x50 PseudoClass 256c 3kb 0.000u 0:01',
453
 
                'test.eps' => 'test.eps PS 43x18 43x18+0+0 PseudoClass 2c 170 0.000u 0:01',
454
 
                'test.psd' => 'test.psd PSD 178x80+0+0 DirectClass 8-bit 127.1kb 0.000u 0:01',
455
 
                'test.wmf' => 'test.wmf WMF 3x3 DirectClass 408 0.020u 0:01',
456
 
                'test.tga' => 'test.tga TGA 3x3 DirectClass 54 0.020u 0:01',
457
 
                'testProfile.jpg' => 'testProfile.jpg JPEG 40x30 DirectClass 30kb 0.010u 0:01',
458
 
                '-format' => array('cmyk.jpg' => 'DirectClassCMYK',
459
 
                                   'rgb_file' => 'DirectClassRGB'),
460
 
        ),
461
 
);
462
 
 
463
 
/* --------------------------------------------------------------------------
464
 
 * GraphicsMagick 1.0.5
465
 
 * --------------------------------------------------------------------------
466
 
 */
467
 
$imEnvironment[] = array(
468
 
        'name' => 'GraphicsMagick',
469
 
        'version' => '1.0.5',
470
 
        'binary' => 'gm',
471
 
        'mimeTypes' => array(
472
 
                'image/gif',
473
 
                'image/jpeg',
474
 
                'image/pjpeg',
475
 
                'image/png',
476
 
                'image/tiff',
477
 
                'image/svg+xml',
478
 
                'image/bmp',
479
 
                'application/pdf',
480
 
                'application/postscript',
481
 
        ),
482
 
        'binaries' => array(
483
 
                'animate',
484
 
                'composite',
485
 
                'conjure',
486
 
                'convert',
487
 
                'display',
488
 
                'identify',
489
 
                'import',
490
 
                'mogrify',
491
 
                'montage',
492
 
        ),
493
 
        'removeMetaDataSwitch' => array('+profile', '*'),
494
 
        'operations' => $_commonOperations,
495
 
        'identify' => array(
496
 
                '' => 'identify: Improper arguments supplied, please see manual.
497
 
Version: GraphicsMagick 1.0.5 November 26, 2004 Q8 http://www.GraphicsMagick.org/
498
 
Copyright: Copyright (C) 2002, 2003, 2004 GraphicsMagick Group
499
 
 
500
 
Usage: identify [options ...] file [ [options ...] file ... ]
501
 
 
502
 
Where options include:
503
 
  -authenticate value  decrypt image with this password
504
 
  -debug events        display copious debugging information
505
 
  -density geometry    horizontal and vertical density of the image
506
 
  -depth value         image depth
507
 
  -format "string"   output formatted image characteristics
508
 
  -help                print program options
509
 
  -interlace type      None, Line, Plane, or Partition
510
 
  -limit type value    Disk, Map, or Memory resource limit
511
 
  -log format          format of debugging information
512
 
  -size geometry       width and height of image
513
 
  -sampling-factor geometry
514
 
                       horizontal and vertical sampling factor
515
 
  -verbose             print detailed information about the image
516
 
  -version             print version information
517
 
  -virtual-pixel method
518
 
                       Constant, Edge, Mirror, or Tile
519
 
',
520
 
                'UNKNOWN' => 'identify: Unable to open file (NOTHING) [No such file or directory].',
521
 
                'test-compressed.tif' =>
522
 
'identify: unknown field with tag 34665 (0x8769) ignored. (test-compressed.tif).
523
 
test-compressed.tif TIFF 50x50+0+0 DirectClass 8-bit 7.8k 0.000u 0:01',
524
 
                'test-multiscene.tif' =>
525
 
'test-multiscene.tif[0] TIFF 100x75+0+0 DirectClass 8-bit 44.7k 0.010u 0:01
526
 
test-multiscene.tif[1] TIFF 100x75+0+0 DirectClass 8-bit 44.7k 0.000u 0:01',
527
 
                'test.bmp' => 'test.bmp BMP 50x50+0+0 PseudoClass 15c 8-bit 504.0 0.000u 0:01',
528
 
                'SIZED.gif' =>
529
 
                    '%filename% GIF %width%x%height%+0+0 PseudoClass 8c 8-bit 232b 0.000u 0:01',
530
 
                'test.gif' => 'test.gif GIF 50x50+0+0 PseudoClass 8c 8-bit 232.0 0.000u 0:01',
531
 
                'test.jpg' => 'test.jpg JPEG 50x50+0+0 DirectClass 8-bit 763.0 0.000u 0:01',
532
 
                'test.jp2' => 'identify: No decode delegate for this image format (test.jp2).',
533
 
                'test.pdf' =>
534
 
'test.pdf[0] PDF 612x792+0+0 PseudoClass 256c 8-bit 946.8k 0.050u 0:01
535
 
test.pdf[1] PDF 612x792+0+0 PseudoClass 256c 8-bit 946.8k 0.030u 0:01',
536
 
                'test.pjpg' => 'test.pjpg JPEG 50x50+0+0 DirectClass 8-bit 970.0 0.000u 0:01',
537
 
                'test.png' => 'test.png PNG 50x50+0+0 DirectClass 8-bit 730.0 0.010u 0:01',
538
 
                'test.svg' => 'test.svg SVG 595x841+0+0 DirectClass 16-bit 7.8kb 0.008u 0:01',
539
 
                'test.tif' => 'test.tif TIFF 50x50+0+0 PseudoClass 256c 8-bit 2.7k 0.000u 0:01',
540
 
                'test.eps' => 'test.eps PS 43x18+0+0 PseudoClass 2c 8-bit 170.0 0.000u 0:01',
541
 
                'test.wmf' => 'identify: No decode delegate for this image format (test.wmf).',
542
 
                'test.tga' => 'identify: No decode delegate for this image format (test.tga).',
543
 
                'testProfile.jpg' =>
544
 
                    'testProfile.jpg JPEG 40x30+0+0 DirectClass 8-bit 29.9k 0.000u 0:01',
545
 
                '-format' => array('cmyk.jpg' => 'DoesThisWork?'),
546
 
        ),
547
 
);
548
 
?>