PDA

View Full Version : how to output image properties?


nighttime
May 14th, 2006, 01:02 AM
I didn't know where exactly to put this, but, oh well. I'm trying to automate updates for my website with a shell script (more like a couple of scripts) from HTML formatting to FTP, everything so I just have to scan a drawing, edit it, type some text and push a button.

Anyway... to automate the proper HTML editing I need a command that will output the width and height of an image, but I haven't found it so far. Is there some utility I can get from synaptic?

Thanks in advance.

moterpent
May 14th, 2006, 01:21 AM
nighttime,

You may want to try/install the ImageMagick package. It has a lot of utilities for dealing with, converting, identifying etc images.

If I remember correctly one of the included utilities (identify) will give you resolution and other various bits of information for any given image(s).

Hope this helps. Good luck with your project!

nighttime
May 24th, 2006, 02:41 AM
Yeah, that's what I used, I found it right after I posted this message heh. Thanks anyway man! btw, I finished the script, works like a charm :) linux is so neat.