GraphicsMagick GM Utility

gm identify
NAME
| identify - describe an image or image sequence.
Contents
| Synopsis Description Options
Synopsis
| gm identify file [ file ... ]
Description
| Identify describes the format and characteristics of one or more image files as internally supported by the software. It will also report if an image is incomplete or corrupt. The information displayed includes the scene number, the file name, the width and height of the image, whether the image is colormapped or not, the number of colors in the image, the number of bytes in the image, the format of the image (JPEG, PNM, etc.), and finally the number of seconds in both user time and elapsed time it took to read and process the image. If -verbose or +ping are provided as an option, the pixel read rate is also displayed. An example line output from identify follows:
        images/aquarium.miff 640x480 PseudoClass 256c
               308135b MIFF 0.000u 0:01
If `-verbose` is set, expect additional output including any image comment:
        Image: images/aquarium.miff
        class: PseudoClass
        colors: 256
        signature: eb5dca81dd93ae7e6ffae99a527eb5dca8...
        matte: False
        geometry: 640x480
           depth: 8
        bytes: 308135
        format: MIFF
        comments:
        Imported from MTV raster image: aquarium.mtv
For some formats, additional format-specific information about the file will be written if the `-debug coder` or `-debug all` option is used.
Back to Contents
Identify options
| Options are processed in command line order. Any option you specify on the command line remains in effect for the set of images immediately following, until the set is terminated by the appearance of any option or -noop. For a more detailed description of each option, see Options, above. GraphicsMagick(1).
| -authenticate <string>
| decrypt image with this password
| -debug <events>
| enable debug printout
| -define <key>{=<value>},...
| add coder/decoder specific options
| -density <width>x<height>
| horizontal and vertical resolution in pixels of the image
| -depth <value>
| depth of the image
| -format <string>
| output formatted image characteristics
| -help
| print usage instructions
| -interlace <type>
| the type of interlacing scheme
| -limit <type> <value>
| Disk, File, Map, Memory, Pixels, Width, Height, Read, Threads, or Write resource limit
| -log <string>
| Specify format for debug log
| -ping
| efficiently determine image characteristics
| -sampling-factor <horizontal_factor>x<vertical_factor>
| chroma subsampling factors
| -size <width>x<height>{+offset}
| width and height of the image
| -verbose
| print detailed information about the image
| -version
| print detailed GraphicsMagick version/build information
| -version
| print compact GNU-style GraphicsMagick version information
For a more detailed description of each option, see Options, above. GraphicsMagick(1).
Back to Contents