Sometimes it’s Awesome to be a Programmer
June 20th, 2007 by James CarrToday 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.







