Re: Easy Method to Find Dimensions of JPG Image



"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.



.



Relevant Pages

  • Re: Easy Method to Find Dimensions of JPG Image
    ... aware of a command (ImageMagick or other) that will display the pixel ... I have a Bash script on my site, ... lines for the images you wish to keep. ... make thumbnails with links and arrange them into a web page. ...
    (alt.os.linux)
  • Re: Anyone here using imageMagick?
    ... Supports over 90 images formats. ... ImageMagick is better than GIMP for resampling, ... The "composite -compose difference" command is easier than trying to tell ...
    (rec.photo.digital)
  • Re: ImageMagick command usage: mogrify -resize
    ... from the explanations given and from other web resources. ... JC> as I'm about to create thumbnails of about 3000 images I'd like a better ... JC> understanding of how this command works. ... Imagemagick, it will be in there somewhere. ...
    (uk.comp.os.linux)
  • Re: RTFM
    ... > is manipulating text files. ... Pro making thumbnails of every image in a directory (over 1000 images). ... That becomes a one-line script in a good shell with the right command ... line utilities (ImageMagick). ...
    (alt.os.linux)
  • Re: RTFM
    ... > is manipulating text files. ... Pro making thumbnails of every image in a directory (over 1000 images). ... That becomes a one-line script in a good shell with the right command ... line utilities (ImageMagick). ...
    (comp.os.linux.misc)