Drive Assembly
About Todd Matson Client Resources Consulting Services Areas of Expertise Course Materials Portfolio Contact Information
Image Sizer

The Image Sizer resizes images for display in a digital photo frame.

Image Sizer

Description

A while ago, I bought a digital photo frame for my grandmother, and encountered two problems when setting it up:

First of all, I found the need to resize my images to match the resolution of the photo frame. That isn't strictly necessary, since the frame automatically resizes images, but storing images at a higher-than-necessary resolution wastes memory. By resizing images, I find I can store about ten times as many photos on the frame.

Second, the frame is capable of displaying images in either portrait mode or landscape mode. I found that, although they are automatically shrunk to fit, vertical images look terrible when displayed in landscape mode and horizontal images look terrible when displayed in portrait mode. I felt it would be good to separate my photos into two groups so that vertical and horizontal images could always be displayed when the frame is in the mode that presents them to best effect.

To solve these two problems, I felt it would be ideal to have a utility that batch processes JPG files, resizing them and sorting them into the appropriate group: portrait or landscape. I could not find an existing utility to do this, so I wrote my own.


Technical Notes
  • The Image Sizer was written in VB.NET.
  • The Image Sizer uses GDI+ graphics to resize images.
  • Images are saved with 100% image quality.