Good afternoon! I have a questions regarding sub-formats which are supported. I am attempting to write a program to utilize ImageMagick to convert image types; however, I want to build in some logic in my program so that unsupported formats are rejected prior to even attempting to execute "convert". The following URL: formats, states: "ImageMagick supports reading over 100 major file formats (not including sub-formats). The following table provides a summary of the supported image formats." This summarized list appears to be the same as reading the output from "convert identify -list format". How does one go about displaying all formats and sub-formats supported, not just a summary?
For instance, "tiff" is listed, but "tif" is not. Without being able to run a check against this, "tif" files will be rejected as invalid file types from my program.
sub-formats;
Re: sub-formats;
I also thought about using the "identify -verbose" output as this page suggeststo help identify whether or not the file type is recognized and translated from the sub-format to the well-known format by searching on the format field...but I am having trouble with this as well, please see below:
#convert identify -verbose 755_002_002b_01_p007.tif
convert: unable to open image `identify': No such file or directory @ blob.c/OpenBlob/2439.
convert: missing an image filename `755_002_002b_01_p007.tif' @ convert.c/ConvertImageCommand/2775.
#convert -identify test.tiff
convert: missing an image filename `test.tiff' @ convert.c/ConvertImageCommand/2775.
The files exist:
#ll 755_002_002b_01_p007.tif
-rwxrwxrwx 1 chammitt employee 8834621 2009-04-29 13:15 755_002_002b_01_p007.tif*
#ll test.tiff
-rwxrwxrwx 1 chammitt employee 6347889 2009-05-04 15:41 test.tiff*
"convert identify -list format" works, why not "convert identify -verbose"?
#convert identify -list format
Format Mode Description
-------------------------------------------------------------------------------
A* rw+ Raw alpha samples
AI rw- Adobe Illustrator CS2
ART* rw- PFS: 1st Publisher Clip Art
ARW r-- Sony Alpha Raw Image Format
AVI* r-- Microsoft Audio/Visual Interleaved
AVS* rw+ AVS X image
B* rw+ Raw blue samples
BGR* rw+ Raw blue, green, and red samples
...
* native blob support
r read support
w write support
+ support for multiple images
~#convert
Version: ImageMagick 6.5.1-5 2009-04-24 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
#convert identify -verbose 755_002_002b_01_p007.tif
convert: unable to open image `identify': No such file or directory @ blob.c/OpenBlob/2439.
convert: missing an image filename `755_002_002b_01_p007.tif' @ convert.c/ConvertImageCommand/2775.
#convert -identify test.tiff
convert: missing an image filename `test.tiff' @ convert.c/ConvertImageCommand/2775.
The files exist:
#ll 755_002_002b_01_p007.tif
-rwxrwxrwx 1 chammitt employee 8834621 2009-04-29 13:15 755_002_002b_01_p007.tif*
#ll test.tiff
-rwxrwxrwx 1 chammitt employee 6347889 2009-05-04 15:41 test.tiff*
"convert identify -list format" works, why not "convert identify -verbose"?
#convert identify -list format
Format Mode Description
-------------------------------------------------------------------------------
A* rw+ Raw alpha samples
AI rw- Adobe Illustrator CS2
ART* rw- PFS: 1st Publisher Clip Art
ARW r-- Sony Alpha Raw Image Format
AVI* r-- Microsoft Audio/Visual Interleaved
AVS* rw+ AVS X image
B* rw+ Raw blue samples
BGR* rw+ Raw blue, green, and red samples
...
* native blob support
r read support
w write support
+ support for multiple images
~#convert
Version: ImageMagick 6.5.1-5 2009-04-24 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Re: sub-formats;
Try
- identify test.tiff