tail -f findings.out

« 64-bit Ubuntu: Not a problem

Permanently remember password for gksudo »

Get useful image information on the command line

ImageMagick is an incredible set of programs that allow you to get all sorts of information on image files from the command line, as well as batch edit and generally alter images of many varieties. You can read all about these facilities on ImageMagick’s well-made documentation site.

What I often want, however, is simple: a command to get commonly desired information from any image file. Alias to the rescue!

1
alias imginfo="identify -format '-- %f -- \nType: %m\nSize: %b bytes\nResolution: %wpx x %hpx\nColors: %k'"

This produces a succinctly helpful output:

imginfo

Often this is all I need for basic tasks. And if more is needed there’s always the full ImageMagick suite.

You can alter the format to whatever you prefer, using the wide variety of variables.

Share and Enjoy:
  • email
  • LinkedIn
  • Slashdot
  • StumbleUpon
  • Technorati
  • Netvibes

Post to Twitter Post to Delicious Post to Digg Post to Reddit

Possibly Related (no promises):

  1. Easily sum matching file line counts
  2. Useful ways to list directory contents
  3. More efficient HTML editing in vim
  4. Viewing all users on a Linux system
  5. Printing tabular data attractively in Python

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , ,
September 26, 2009 - 10:20 PM
Leave a reply

Subscribe without commenting

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.