Image APIs

I have the opportunity to take lots and lots of pictures these days and share them with family and friends.  You can guess why, but I am reluctant to be as open with my private life as say KC and David.  Anyhow I decided to create a photoblog for our relatives to keep up to date and allow uploading and automatic conversion of my large jpegs to a more web appropriate size and even to thumbnails.  I had been using a very nice command-line utility convert.exe which is a part of the ImageMagick toolkit to resize image after the upload.  Much nicer than manually converting each one in Digital Image Pro.  Digital Image is handy by the way.  Very nice for image touch-ups, smart erase and printing.  Would love to see VBA inside that tool for automating repetitive tasks.  Anyhow, in doing this and talking with some of the digital photogs in my group I learned about EXIF and the metadata therein, including to my surprise, an actual thumbnail embedded in the file.  I then remembered Omar Shahine had an entry about a tool he'd built - JPEG Hammer - and I decided to take a look at that as well as his GotDotNet workspace to see how he was creating thumbnails.  Finally, revelation.  I found Image.GetThumbnailImage and Graphics.DrawImage methods in System.Drawing.  I love this.  Now I have the happy task of rewriting to remove an external dependency. 

Comments (4)

  1. Pavel Lebedinsky says:

    A couple of years ago when I needed to generate a bunch of scaled down pictures I tried using Image.GetThumbnailImage and the quality of resulting images was absolutely horrible.

    Graphics.DrawImage with InterpolationMode.HighQualityBicubic worked much better.

  2. Tosh Meston says:

    Thanks for the tip.

  3. FUNTIGO is taking over the photo sharing market space.

    Check it out at

    I can’t even begin to explain all the features. But it is sweet. It is all about easy uploads and easy page manipulation for digital pictures.

    Easy to make thumbnails of any size and create multiple photo albums.

    Then there is a button on the page to view a slide show.

    You can also hover over the thumbnails and then open a high res version.

    One of the lead developers from oracle (too bad it wasn’t microsoft) helped to get funtigo started. It is really a slick package.

    Check it out.

Skip to main content