Name: mizukami !qZIhB0izmw 2005-04-24 1:52
What kind of scripting language would be best to process JPEG images? I have a collection of thousands of images, some named identically with similar images (just the same pictures resized) and some images that are identical but not named the same, all in various directories. I want to get rid of any duplicates (as well smaller sized versions...I'm willing to deal with just resized versions named identically) to save drive space, but I want to be sure to save those that are not corrupted and have the highest resolution.
I _do_ have a CSV (comma-seperated value; usually used as a common spreadsheet format) file that has what I'm guessing are the original filenames, a checksum (maybe), the original filesizes and directory structure. However, I wouldn't know how to process it. I would like to use Java, but Java is a bit inflexible (and overkill I think) when it comes to file system access, moving files from one place to another.
I think Ant scripts might be in the right direction, but they lack clear flow control (thanks heap XML). I'm open to considering other scripting languages that may be better for this. Any ideas?
I _do_ have a CSV (comma-seperated value; usually used as a common spreadsheet format) file that has what I'm guessing are the original filenames, a checksum (maybe), the original filesizes and directory structure. However, I wouldn't know how to process it. I would like to use Java, but Java is a bit inflexible (and overkill I think) when it comes to file system access, moving files from one place to another.
I think Ant scripts might be in the right direction, but they lack clear flow control (thanks heap XML). I'm open to considering other scripting languages that may be better for this. Any ideas?