Re: Easy Method to Find Dimensions of JPG Image



On Fri, 29 Dec 2006 13:16:16 -0500, David T. Ashley wrote:

"Michael C." <mjchappell@xxxxxxxxxxx> wrote in message
news:slrnep9ep2.3nr.mjchappell@xxxxxxxxxxxxxxxxxxxxxxxxxx
["Followup-To:" header set to alt.os.linux.]
On Fri, 29 Dec 2006 01:03:18 -0500,
David T. Ashley <dta@xxxxxxxx> wrote:
I've been experimenting with ImageMagick, i.e.

http://www.dtashley.com/howtos/2006/12/imagemagick_thumbnails/

The one missing element (as I lay out web pages manually) is that I'm
not
aware of a command (ImageMagick or other) that will display the pixel
dimensions of a .JPG image.

identify -format "%wx%h" image.jpg

identify is part of ImageMagick.

I have a Bash script on my site,

http://mcsuper5.freeshell.org/stripdups/stripdups

that attempts to find duplicate images that uses identify in
multiple places, and creates a webpage. I haven't played with it
in a while, but it worked reasonably well. By default it
requires you to edit a file if dups are found, you delete the
lines for the images you wish to keep.

Thanks a lot. The Bash script you linked to is a good starting point for
me. I'm trying to do approximately the same thing. I get a bunch of photos
off my digital camera and into a directory, and the first task for me is to
make thumbnails with links and arrange them into a web page. This is very
laborious.

I don't see any need to overcomplicate the matter. If a Bash script has
enough control functionality to make it happen, ... I'm not seeing the need
to use a scripting language or write a 'C' program.

Thanks again.

'imageindex' is what I use for doing the thumbnails etc. and making the
web page. See examples at www.rcarter.net/local.html

.



Relevant Pages