Image-dimention with ImageMagick

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Vitek
Posts: 2
Joined: 2011-10-17T08:30:10-07:00
Authentication code: 8675308

Image-dimention with ImageMagick

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Image-dimention with ImageMagick

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Vitek
Posts: 2
Joined: 2011-10-17T08:30:10-07:00
Authentication code: 8675308

Re: Image-dimention with ImageMagick

Post by Vitek »

Thank you very much, antony ! :D
Post Reply