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. ;)

You can leave a response, or trackback from your own site.

Facebook comments:

5 Responses to “Sometimes it’s Awesome to be a Programmer”

  1. slack says:

    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.

  2. James Carr says:

    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

  3. slack says:

    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.

  4. Guillaume says:

    You mean installing an OS + a software + writing a script is quicker than writing a Java class? Come on…

Leave a Reply

Subscribe to RSS Feed Follow me on Twitter!