3
* Gallery - a web based photo album viewer and editor
4
* Copyright (C) 2000-2007 Bharat Mediratta
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.
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.
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.
21
* @version $Revision: 15513 $
22
* @package ImageMagick
24
* @author Ernesto Baschny <ernst@baschny.de>
28
* This file contain information to emulate specific ImageMagick/GraphicsMagick
29
* installations. They are used by the ImageMagickToolkitTestPlatform.
33
* Those are the default operations for all IM-environments.
34
* Any element can be overridden in each environments definition below.
36
$_commonOperations = array(
38
'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%',
39
'+profile', '*', '%src%', '%dst%'),
42
'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%',
46
'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%',
50
'convert' => array('-crop', '%width%x%height%+%x%+%y%', '%src%', '%dst%'),
53
'convert' => array('-rotate', '%angle%', '%src%', '%dst%'),
55
'convert-to-image/jpeg' => array(
56
'convert' => array('%src%', 'jpeg:%dst%'),
59
'composite' => array('-geometry', '+%x%+%y%', '%image%', '%src%', '%dst%'),
61
'convert-to-image/png' => array(
62
'convert' => array('%src%', 'png:%dst%'),
64
'select-page' => array(
65
'convert' => array('%src%', '%dst%'),
68
'convert' => array('%src%', '%dst%'),
72
/* --------------------------------------------------------------------------
74
* --------------------------------------------------------------------------
76
$imEnvironment[] = array(
77
'name' => 'ImageMagick',
88
'application/postscript',
101
'removeMetaDataSwitch' => array(),
102
'operations' => array_merge($_commonOperations, array(
103
'thumbnail' => array(
104
'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%',
108
'convert' => array('-size', '%width%x%height%', '-geometry', '%width%x%height%',
111
'composite' => array(
112
'combine' => array('-geometry', '+%x%+%y%', '%image%', '%src%', '%dst%'),
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
119
Usage: identify [ options ... ] file [ file ... ]
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
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?'),
156
/* --------------------------------------------------------------------------
158
* --------------------------------------------------------------------------
160
$imEnvironment[] = array(
161
'name' => 'ImageMagick',
162
'version' => '5.4.2',
164
'mimeTypes' => array(
173
'application/postscript',
174
'application/photoshop',
188
'removeMetaDataSwitch' => array('+profile', '*'),
189
'operations' => $_commonOperations,
191
'' => 'Version: @(#)ImageMagick 5.4.2 01/01/02 Q:16 http://www.imagemagick.org
192
Copyright: Copyright (C) 2002 ImageMagick Studio LLC
194
Usage: identify [ -option value ... ] file [ file ... ]
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
206
'UNKNOWN' => 'identify: Unable to open file (NOTHING) [No such file or directory].
207
identify: Missing an image file name.',
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',
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',
231
'identify: no delegate for this image format (test.wmf) [No such file or directory].
232
identify: Missing an image file name.',
234
'identify: no delegate for this image format (test.tga) [No such file or directory].
235
identify: Missing an image file name.',
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 */
243
/* --------------------------------------------------------------------------
245
* --------------------------------------------------------------------------
248
$imEnvironment[] = array(
249
'name' => 'ImageMagick',
250
'version' => '6.0.7',
252
'mimeTypes' => array(
264
'application/postscript',
265
'application/photoshop',
270
'application/photoshop-cmyk',
284
'removeMetaDataSwitch' => array('+profile', '*'),
285
'operations' => array_merge($_commonOperations, array(
286
'convert-to-image/jpeg' => array(
287
'convert' => array('-colorspace', 'RGB', '%src%', 'jpeg:%dst%')))),
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 ... ]
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,
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
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',
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',
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'),
350
/* --------------------------------------------------------------------------
352
* --------------------------------------------------------------------------
355
$imEnvironment[] = array(
356
'name' => 'ImageMagick',
357
'version' => '6.1.3',
359
'mimeTypes' => array(
371
'application/postscript',
372
'application/photoshop',
377
'application/photoshop-cmyk',
391
'removeMetaDataSwitch' => array('-strip'),
392
'operations' => array_merge($_commonOperations, array(
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%')))),
399
'' => 'Version: ImageMagick 6.1.3 11/01/04 Q16 http://www.imagemagick.org
400
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
402
Usage: identify [options ...] file [ [options ...] file ... ]
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,
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
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',
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',
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'),
463
/* --------------------------------------------------------------------------
464
* GraphicsMagick 1.0.5
465
* --------------------------------------------------------------------------
467
$imEnvironment[] = array(
468
'name' => 'GraphicsMagick',
469
'version' => '1.0.5',
471
'mimeTypes' => array(
480
'application/postscript',
493
'removeMetaDataSwitch' => array('+profile', '*'),
494
'operations' => $_commonOperations,
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
500
Usage: identify [options ...] file [ [options ...] file ... ]
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
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',
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).',
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).',
544
'testProfile.jpg JPEG 40x30+0+0 DirectClass 8-bit 29.9k 0.000u 0:01',
545
'-format' => array('cmyk.jpg' => 'DoesThisWork?'),