Page 1 of 1

Image-dimention with ImageMagick

Posted: 2011-10-17T23:52:45-07:00
by Vitek
Hi!

I have to acknowledge that I have been getting great help from this forum.

And, here is my problem:
I need to output the size of an image file in the following form so that it is the DAMConverter (Oracle) read:

Filename: sample.jpg
Type: JPEG
Width: 640
Height: 480

ImageMagic provides the data only in the following formats:

$ identify sample.jpg
sample.jpg JPEG 640x480 640x480 +0 +0 DirectShow class 52kb

or

$ identify-verbose sample.jpg
Image: sample.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: direct class
Geometry: 640x480
....

Is it possible, the output from the ImageMagick on the type of ImageAlchemy for arranging?

Many thanks,
Viktor

Re: Image-dimention with ImageMagick

Posted: 2011-10-18T00:54:34-07:00
by anthony
Vitek wrote:Is it possible, the output from the ImageMagick on the type of ImageAlchemy for arranging?
Are you asking for the verbose output to be modified?

You can specify your own output style using -format with appropriate percent escapes!

see Identify Alternatives - Text Output Options for some examples...
http://www.imagemagick.org/Usage/basics/#identify_alt

See Image Property Escapes for the various substitutions currently available
http://www.imagemagick.org/script/escape.php

Re: Image-dimention with ImageMagick

Posted: 2011-10-18T09:12:34-07:00
by Vitek
Thank you very much, antony ! :D