You are not logged in.

#1 2008-08-30 23:53:09

colbert
Member
Registered: 2007-12-16
Posts: 809

Listing/sorting images by size in shell

I have so many wallpaper files I want to sort by resolution, i'm wondering if I can sort or list them in shell or some manner this way. For example, I have 100 .jpg/.png's in a folder and they range from 1280x1024 upto 2560x1600. How can I separate them into folders by resolutions in this way? Thanks so much for any help, this would save lots of time! big_smile smile

Offline

#2 2008-08-31 00:48:00

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: Listing/sorting images by size in shell

pacman -S feh && man feh
For example:

cd ~/images
feh -U -A 'mkdir "~/image_sorted/%wx%h" ; mv "%f" "~/images_sorted/%wx%h/%n"'

hell, feh is good!

Offline

Board footer

Powered by FluxBB