Today I had an amusing problem… a friend wanted me to send him all of the pictures that I took this weekend, and he wanted to get them in about an hour or two. No problem I thought, so I just took the memory card, slapped in my laptop, and prepared to zip the files up and send them.
However, the files were the usual 3000×4000 (you get the idea) sizes, and would take ages to upload to a server, let alone download. I needed to do a batch resize on about 400 images, and in the absence of a good program on my laptop to do this, I decided to go about writing my own little program to do it.
Half an hour later, I have a stand alone java class running, processing all of the images in my pictures folder, resizing them and writing them out to a new folder… and it’s almost done.


Hi.
A suggestion: install an unix flavour on you laptop, install imageMagick and with a shell script of about 10 lines you’ll get this done in 15 min..
Cheers,
Slack.
Why do people always suggest I install something I already have (I have Debian Linux and FreeBSD installed on my desktops)?
I used Java’s ImageIO because it was something new.. I’ve already done image manipulation before from PHP using ImageMagik.
Thanks,
James
Hi. My intention was suggesting a quicker way to get the job done. Experimenting is good, but not when you’re in a hurry
Cheers,
Slack.
Picassa bro!
You mean installing an OS + a software + writing a script is quicker than writing a Java class? Come on…