Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-17-2005, 12:05 AM   #1
Registered: Feb 2004
Posts: 58

Rep: Reputation: 15
Batch image dimension detection and deletion

I have a folder full of many desktop pictures (aka wallpaper). They're pretty nice, but this Saturday we'll be buying a laptop which happens to be widescreen. All of our desktop pictures have the standard 4/3 aspect ratio and some of these pictures (1024x728, etc.) will simply lack the width necessary to fill the screen without streching.

Since I have so many desktop pictures, it would be great if there was a way to automatically delete all images in this folder (~/Pictures/Desktop Pictures) that are less than 1280 pixels wide or less than 854 pixels tall. How could I go about doing this?
Old 03-17-2005, 03:54 AM   #2
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,603

Rep: Reputation: 128Reputation: 128
Not the whole solution, but maybe it helps:
If you have imagemagick and the tcsh installed, you could use the "identify" command to give out the dimensions of each wallpaper and give out only the name and the dimension. It's a raw hack, there are surely better solutions for this.

foreach f (*)
  identify $f | awk '{ print $1 " " $3 }'


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch image manipulation elfoozo Linux - Software 5 06-03-2005 06:22 PM
Looking for a Batch Image Resizer Fonk Linux - Software 1 10-13-2004 02:58 PM
Batch image conversion mrsolo Linux - Software 1 09-06-2004 04:47 PM
batch image resize and compression Darkfalz Linux - Software 3 08-01-2004 02:08 AM
batch image resizer jdaniel Linux - General 2 07-14-2003 11:08 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration