View Single Post
Old January 8th, 2013, 01:27 PM   #224 (permalink)
MoodyBlues
- Crazy peacock person -
 
MoodyBlues's Avatar
 
Join Date: Jan 2011
Location: /home/LosAngeles
Posts: 3,251
 
Device(s): Kindle Fire HD 8.9" (rooted), Motorola Atrix 2, Motorola Atrix 4G (retired), Motorola Bravo (retired
Carrier: AT&T

Thanks: 1,073
Thanked 1,535 Times in 941 Posts
Default

Quote:
If you have a better way then by all means share
Hey, we're Linux users! Of course there's a better way! Or two. Or three. Or...

Quote:
I have completed the first one manually. I thought of a program to do it but I don't know anything about programming outside of vb6. That won't do me much good as this is a Linux machine
Do you do any bash scripting? How are you at a command line? Pretty comfortable? Are you at all familiar with ImageMagick?

Quote:
I've first ran Fslint to remove any duplicates that I may have. ( Great program unless the duplicates are of different sizes or something else is different)
What are you basing "duplicates" on? Name? Size? Size in pixels? Size in bytes? Date? Any/all of these can be ambiguous.

Quote:
I then set up my folder structure and started *gulp* drag and drop. took me all day to do the one folder
Which is why I'll *NEVER* be a full-blown GUI user! I can do in seconds or minutes at a CLI what takes hours or days in a GUI.

Quote:
I am setting everything up by size and type so like if its a fantasy picture it's in a folder called fantasy and then in a folder that corresponds with its Width x Height. Mostly the WxH is new as I have been having trouble with setting up pics for wallpapers as they tend to be to small or way to big. I figured this system would help eliminate that
How about adding their dimensions to their names instead? In other words, instead of having:

Code:
fantasy1 (a directory)

. fantasy1_3000x3000 (subdirectory)
.. picture1.jpeg
.. picture2.jpeg
.. picture3.jpeg

. fantasy1_3500x3500 (subdirectory)
.. picture1.jpeg
.. picture2.jpeg
.. picture3.jpeg

. fantasy1_4000x4000 (subdirectory)
.. picture1.jpeg
.. picture2.jpeg
.. picture3.jpeg


fantasy2 (a directory)

. fantasy2_3000x3000 (subdirectory)
.. picture1.jpeg
.. picture2.jpeg
.. picture3.jpeg

. fantasy2_3500x3500 (subdirectory)
.. picture1.jpeg
.. picture2.jpeg
.. picture3.jpeg

. fantasy2_4000x4000 (subdirectory)
.. picture1.jpeg
.. picture2.jpeg
.. picture3.jpeg
you could have:

Code:
. fantasy1 (a directory)
.. picture1_3000x3000.jpeg
.. picture2_3000x3000.jpeg
.. picture3_3000x3000.jpeg
.. picture1_3500x3500.jpeg
.. picture2_3500x3500.jpeg
.. picture3_3500x3500.jpeg
.. picture1_4000x4000.jpeg
.. picture2_4000x4000.jpeg
.. picture3_4000x4000.jpeg

. fantasy2 (a directory)
.. picture1_3000x3000.jpeg
.. picture2_3000x3000.jpeg
.. picture3_3000x3000.jpeg
.. picture1_3500x3500.jpeg
.. picture2_3500x3500.jpeg
.. picture3_3500x3500.jpeg
.. picture1_4000x4000.jpeg
.. picture2_4000x4000.jpeg
.. picture3_4000x4000.jpeg
The files could be renamed however you like, for example, 3000x3000_picture1.jpeg or picture1_3000.jpeg, etc.

Combining bash commands with ImageMagick commands, all of the above could be accomplished quickly. IM has a zillion options, literally infinite when you're combining them, and there's definitely a learning curve, especially if you're not already pretty comfortable at a command line with basic *nix usage.

Using IM's identify command, here's an example of it determining an image's attributes--only the attributes I told it to identify, its width and height:

Code:
$ identify -format "%wx%h" pg7.png
638x877
Taking that output and using a little bash and a little IM, you could rename the files so they include the dimensions in their names.

Like I said, there's definitely a learning curve, but I can't stress strongly enough how useful IM is once you're used to it. I'd be lost without its power and versatility. I can literally process hundreds of image files, in any number of ways, in a VERY small fraction of the time it would take to do it manually. Take a look at ImageMagick, including some of its options to see how powerful it is.
MoodyBlues is offline  
Reply With Quote