Sometimes it’s Awesome to be a Programmer
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. ![]()
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!








June 21st, 2007 at 5:58 am
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.
June 21st, 2007 at 7:17 am
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
June 21st, 2007 at 9:38 am
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.
June 21st, 2007 at 4:11 pm
Picassa bro!
June 29th, 2007 at 5:59 am
You mean installing an OS + a software + writing a script is quicker than writing a Java class? Come on…