topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday March 18, 2024, 10:10 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: DONE: Sort images into folders based on resolution  (Read 89730 times)

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,626
    • View Profile
    • Donate to Member
DONE: Sort images into folders based on resolution
« on: April 24, 2009, 01:04 PM »
Not sure if something like this exists, but was wondering if someone knew about a tool/could whip something up that was able to scan & sort images based on their resolutions (would have to support non-standard sizes as well, like 1794x1250). It wouldn't have to be anything massive (or even have a GUI or options or anything), just something that would go through and make folders for each size, then move the images in.

Anyone?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #1 on: April 24, 2009, 05:31 PM »
I'll take this one...

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #2 on: April 24, 2009, 06:18 PM »
2wreckedcarzz
If you take a look on linked thread you'll be done :)
http://ghisler.ch/bo...ewtopic.php?p=163528

Patched version:
http://fenixproducti...com/tmp/MRTpatch.zip

Just drag'n'drop your pictures into it and use similar settings to these on screenshot:

mrtscreen.pngDONE: Sort images into folders based on resolution

After Start you're done :)
« Last Edit: April 24, 2009, 06:20 PM by fenixproductions »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #3 on: April 24, 2009, 06:22 PM »
Try this out:  Dimensions 2 Folders

2009-07-08_071309.pngDONE: Sort images into folders based on resolution

Currently, it does not recurse subfolders in the source folder nor will it overwrite a file in the eventual destination folder.  These are behaviours that are easily added but I wanted to see if this is what you had in mind first.  As always, better name suggestions are always welcome.  =]

Edit: Added screenshot.
« Last Edit: July 08, 2009, 07:24 AM by skwire »

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,626
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #4 on: April 24, 2009, 06:38 PM »
Try this out:  Dimensions-2-Folders

Currently, it does not recurse subfolders in the source folder nor will it overwrite a file in the eventual destination folder.  These are behaviours that are easily added but I wanted to see if this is what you had in mind first.  As always, better name suggestions are always welcome.  =]

That should work just fine - I just have a collection of desktops that I have been downloading (mass googling and drag-and-drop downloading :P) and need to sort 'em.


@fenix:
I'll give that a try and see how it works as well :Thmbsup:


Will post back in a bit when I get back on my Windows machine :)

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,626
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #5 on: April 24, 2009, 07:28 PM »
Alright, I just gave both apps a try- Dimensions-2-Folders is much better suited to the task I was trying to achieve, however the Multi-Rename Script that fenix pointed out definitely has some power (just overkill for something like this). I'll keep both handy for specific tasks :)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #6 on: April 24, 2009, 07:34 PM »
Did you want anything else?  I was thinking:

1) Option for recursing through the source folder.  This will have to entail some rename logic for filename collisions.
2) Option for moving instead of copying (as it does now).
3) Drag-n-drop support for the folder edit fields.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #7 on: April 24, 2009, 07:36 PM »
an alternative to what you are trying to do would be to not try to physically sort the files on your hd, but use a good image management tool that would let you sort views based on image dimensions (like ACDSee, etc.). whether this is a better solution would depend on your needs.

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #8 on: April 24, 2009, 07:38 PM »
however the Multi-Rename Script that fenix pointed out definitely has some power (just overkill for something like this). I'll keep both handy for specific tasks :)
-wreckedcarzz (April 24, 2009, 07:28 PM)
I agree that its power is far beyond this task. Although I know that almost 100 TC plugins are "out there" so it can be used for grouping many file types according to their properties (i.e. mp3 files by artists).

Damn, it has just gave me idea for mini-review ;)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #9 on: July 08, 2009, 08:11 AM »
I fleshed this out a bit for a proper release.  Download

  • Option for recursing through the source folder.
  • Option for moving files (instead of only copying them).
  • Drag&drop to the edit fields.
  • Custom folder delimiter e.g. 800x600, 800 x 600, 800X600, 800$600, etc.

2009-07-08_071309.pngDONE: Sort images into folders based on resolution
« Last Edit: July 25, 2009, 05:49 AM by skwire »

Lebewesen

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 10
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #10 on: July 25, 2009, 05:11 AM »
Hi skwire,

the program sounds good but I can't download it - I get an 404

Another idea for the program: To sort in folders with the "size" of the picture - for an 800*600 or 600*800 picture in 480k or something like that.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #11 on: July 25, 2009, 05:17 AM »
same here, 404 file not found.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #12 on: July 25, 2009, 05:50 AM »
Doh...try now.  Apologies.   :-[

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #13 on: July 25, 2009, 05:55 AM »
Another idea for the program: To sort in folders with the "size" of the picture - for an 800*600 or 600*800 picture in 480k or something like that.
This could be done.  However, there would have to be some rounding involved because, otherwise, you'd likely end up with one folder per image unless the size was exactly the same for given images.  Follow me?

Lebewesen

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 10
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #14 on: July 25, 2009, 10:50 AM »
Sorry - I wasn't exact

My idea is to calculate "with X heigh" and truncate the last 3 to 6 digits

  800 *   600 = 480k
1024 *   768 = 786k
1920 * 1200 =    2M or 2.3M

As I understand your program - I'll get diffrent direcorys for landscaped and portrait as it is right now? This is also be good if I want to filter landscape and portait.

The download worked, thanks - I'll try the program later

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #15 on: July 25, 2009, 11:33 AM »
My idea is to calculate "with X heigh" and truncate the last 3 to 6 digits
  800 *   600 = 480k
1024 *   768 = 786k
1920 * 1200 =    2M or 2.3M
Hmmm...multiplying the width times the height is not a good indicator of file size.  Did you maybe mean a rounded off total pixel count?

As I understand your program - I'll get diffrent direcorys for landscaped and portrait as it is right now? This is also be good if I want to filter landscape and portait.
Yes, that would be the case.
« Last Edit: July 25, 2009, 11:51 AM by skwire »

Lebewesen

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 10
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #16 on: July 25, 2009, 01:13 PM »
Hmmm...multiplying the width times the height is not a good indicator of file size.  Did you maybe mean a rounded off total pixel count?
That was my intention - sorry I'm not a nativ english speaker.
My Intention was a pixel count. I think it is good for sorting HighRes and LowRes pictures.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #17 on: July 25, 2009, 01:56 PM »
My Intention was a pixel count. I think it is good for sorting HighRes and LowRes pictures.
Ahh, that makes much more sense.  Sure, I can do this.

Esker

  • Supporting Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #18 on: August 16, 2009, 05:49 PM »
This is a lovely piece of software, and something I've been looking for (on and off) for at least a year now. I do have one request I'd like to add to it, however.

I'd like to see an option to sort out just one specific resolution, or a list of specified resolutions, so that I can run the program on my bulk image downloads folder and pull out all the images that are wallpaper sized, without worrying about having hundreds of extraneous folders created that then get in the way of other sorting (exactly 400 folders created this batch, amusingly).

As an added bonus, but much lower priority, a sub-option that would create a second folder for images that almost match the required res but not quite, e.g. 1682x1050 or 1680x1040. Perhaps with a definable pixel or percent range.

Cheers.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #19 on: August 17, 2009, 02:34 AM »
I'd like to see an option to sort out just one specific resolution, or a list of specified resolutions, so that I can run the program on my bulk image downloads folder and pull out all the images that are wallpaper sized, without worrying about having hundreds of extraneous folders created that then get in the way of other sorting (exactly 400 folders created this batch, amusingly).
As an added bonus, but much lower priority, a sub-option that would create a second folder for images that almost match the required res but not quite, e.g. 1682x1050 or 1680x1040. Perhaps with a definable pixel or percent range.

Dimensions 2 Folders has been updated to v1.0.3: Webpage | Download

v1.0.3 - 2009-08-17
    + Added a second sort method that allows you to specify specific resolutions to
      sort (along with a +/- threshold for each).  (Thanks, Esker)

This new method, 'Sort only images that match these resolutions', allows you to set only certain resolutions to sort.  You can also set a +/- threshold for each resolution to catch those images that are "close" to your target resolution.  For instance, if you set a width of 800, a height of 600, and a threshold of 20, this will match any image with a resolution between 780 and 620.  All such images will be sorted into an 800x600 folder.  If you want to match a resolution EXACTLY, set the threshold to 0.

main.pngDONE: Sort images into folders based on resolution

paarkhi

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 90
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #20 on: August 17, 2009, 04:53 AM »
u r kind-hearted and really intelligent to fulfill requests...

Esker

  • Supporting Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #21 on: August 17, 2009, 06:21 AM »
Wow, very very nice. Rather astoundingly quick, too.

Thanks a bunch. :)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #22 on: August 17, 2009, 07:36 AM »
Thanks for the kind words, Esker & paarkhi.  Esker, I realise that I sort of combined your two requests into one but I hope that was okay.  Did you have a chance to test it out on your downloads folder?

Esker

  • Supporting Member
  • Joined in 2009
  • **
  • default avatar
  • Posts: 5
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #23 on: August 17, 2009, 04:44 PM »
I've given it a shot on a test folder, and it doesn't quite work the way I envisaged. The way I was wanting the tolerance to work was to have the images that were within bounds but not exact put into a separate folder of their own. I'm somewhat anal about having my wallpaper dimensions exact to the pixel, so having the ones that aren't quite right separated out means I can get at them easily to fix.

I'm not saying to get rid of the current method though, since I suspect that for most people who would use the program it would be what they want. And the main part works perfectly. So maybe another checkbox when you're adding/editing a filter?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Sort images into folders based on resolution
« Reply #24 on: August 17, 2009, 05:04 PM »
Sure, I can do that.  Any ideas for a folder name suffix?  Say, for instance, we're dealing with 800x600 and a tolerance of 20.

800 x 600           <-- Exact matches here.
800 x 600 [~20]  <-- Within tolerances here.

This is what I had in mind.