Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

JPEG filter script?

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?

Name: Anonymous 2005-04-24 5:38

perl.
on a sidenote, there are apps which do just that. use teh google.

Name: mizukami !qZIhB0izmw 2005-04-24 16:00

using a csv? what particular terms should I search for? usually I get a lot of apps that GENERATE a csv, but not ones that use for automatic organization. If you have a suggestion for an app, preferably one that has some customization features, I'm all ears.

Name: Anonymous 2005-04-25 13:30

using a csv?
filtering duplicates from your image collection. i know no actual app which does that, but i can stab in the dark: imagemagick -> "compare", http://www.imagemagick.org/script/compare.php

Name: Anonymous 2005-04-25 15:10

use perl.. and parse them mo'fockas OUT!

Name: mizukami !qZIhB0izmw 2005-05-01 1:16

found a program called Hunter which does the job pretty easily, but it took a while to find it...

Name: Anonymous 2008-02-28 2:00

bampu pantsu

Name: Anonymous 2008-02-28 9:30

Java? Ant? Are you fucking stoned?

Use bash with imagemagick. /thread

Also, lol @ googling how to parse a csv with perl. split is your friend!

Name: Anonymous 2008-02-28 9:45

>>8
This may surprise you, but CSV is slightly more complex than just ``split''.

Only slightly, though. Fields may contain ,, newlines or escaped quotes.

Name: Anonymous 2008-02-28 9:59

SCALABLE ENTERPRISE SOLUTIONS REQUIRE PROPRIETARY XML EXTENSIONS

Name: Anonymous 2008-02-28 10:19

>>8
Also, lol @ googling how to parse a csv with perl. split is your friend!
Every time someone tries parsing csv with split, god kills a perl programmer.

Name: Anonymous 2008-02-28 11:47

bash

Name: Anonymous 2008-02-28 18:42

mIRC

Name: Anonymous 2010-12-17 1:21

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2010-12-21 13:16

Name: Anonymous 2013-07-25 7:44

check em

Don't change these.
Name: Email:
Entire Thread Thread List