Welcome Guest.   Make a donation to an author on the site April 19, 2014, 04:30:00 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: Sort images into folders based on resolution  (Read 24525 times)
wreckedcarzz
Charter Member
***
Posts: 1,620



Happy wolfie ^_^

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: April 24, 2009, 01:04:29 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?
Logged

New website! With a fancy domain name and everything! *gasp*
http://www.wreckedcarzz.com/
skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: April 24, 2009, 05:31:20 PM »

I'll take this one...
Logged

fenixproductions
Honorary Member
**
Posts: 1,168



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: April 24, 2009, 06:18:12 PM »

2wreckedcarzz
If you take a look on linked thread you'll be done smiley
http://ghisler.ch/board/viewtopic.php?p=163528

Patched version:
http://fenixproductions.d...bers.com/tmp/MRTpatch.zip

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



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

Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero smiley
skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: April 24, 2009, 06:22:44 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.  =]

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

wreckedcarzz
Charter Member
***
Posts: 1,620



Happy wolfie ^_^

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: April 24, 2009, 06:38:21 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 tongue) 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 smiley
Logged

New website! With a fancy domain name and everything! *gasp*
http://www.wreckedcarzz.com/
wreckedcarzz
Charter Member
***
Posts: 1,620



Happy wolfie ^_^

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: April 24, 2009, 07:28:48 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 smiley
Logged

New website! With a fancy domain name and everything! *gasp*
http://www.wreckedcarzz.com/
skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: April 24, 2009, 07:34:52 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.
Logged

mouser
First Author
Administrator
*****
Posts: 32,669



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: April 24, 2009, 07:36:49 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.
Logged
fenixproductions
Honorary Member
**
Posts: 1,168



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: April 24, 2009, 07:38:07 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 smiley
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 Wink
Logged

Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero smiley
skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: July 08, 2009, 08:11: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.

« Last Edit: July 25, 2009, 05:49:56 AM by skwire » Logged

Lebewesen
Supporting Member
**
Posts: 10


View Profile Give some DonationCredits to this forum member
« Reply #10 on: July 25, 2009, 05:11:06 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.
Logged
mouser
First Author
Administrator
*****
Posts: 32,669



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: July 25, 2009, 05:17:13 AM »

same here, 404 file not found.
Logged
skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: July 25, 2009, 05:50:19 AM »

Doh...try now.  Apologies.   embarassed
Logged

skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: July 25, 2009, 05:55:29 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?
Logged

Lebewesen
Supporting Member
**
Posts: 10


View Profile Give some DonationCredits to this forum member
« Reply #14 on: July 25, 2009, 10:50:05 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
Logged
skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #15 on: July 25, 2009, 11:33:35 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:16 AM by skwire » Logged

Lebewesen
Supporting Member
**
Posts: 10


View Profile Give some DonationCredits to this forum member
« Reply #16 on: July 25, 2009, 01:13:53 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.
Logged
skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #17 on: July 25, 2009, 01:56:40 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.
Logged

Esker
Supporting Member
**
Posts: 5

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #18 on: August 16, 2009, 05:49:48 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.
Logged
skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #19 on: August 17, 2009, 02:34:36 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.

Logged

paarkhi
Supporting Member
**
Posts: 87

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #20 on: August 17, 2009, 04:53:34 AM »

u r kind-hearted and really intelligent to fulfill requests...
Logged
Esker
Supporting Member
**
Posts: 5

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #21 on: August 17, 2009, 06:21:51 AM »

Wow, very very nice. Rather astoundingly quick, too.

Thanks a bunch. smiley
Logged
skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #22 on: August 17, 2009, 07:36:28 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?
Logged

Esker
Supporting Member
**
Posts: 5

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #23 on: August 17, 2009, 04:44:57 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?
Logged
skwire
Moderator
*****
Posts: 3,903



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #24 on: August 17, 2009, 05:04:36 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.
Logged

Pages: [1] 2 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.051s | Server load: 0.34 ]