I have always had problems generating thumbnails from a large amount of images quickly and easily. Also standard graphic programs couldn't meet my needs - or it simply took too much time handling image after image.
This Thumbnail Generator is qualified for generating thumbnails of images you are publishing on the Internet. Pre-generated thumbnails save you processor utilization and disk space (if you're generating thumbnails on the fly) - or user's time and money.
But also converting a large amount of images from one file format to another can be handled easily.
This project might also be an interesting starting point for Win Form rookies. Learn how forms, simple internationalization support and XML are working together! Just download the project source code, all source files are commented.
- Different file formats (BMP, GIF, JPEG, PNG, TIFF) - for both: source images and target thumbnails
- Self specified thumbnail image extensions
- Preview of source images and output thumbnails (including information on width, height, ratio)
- Fixed width, height as well as maintaining aspect ratio
- Bilinear re-sampling
Image LbxSourceImage = Image.FromFile(filesFromDialog[i]);
ImageListBoxItem lbxItem = new ImageListBoxItem(
Also full multilingual support for English and German language is provided. (Feel free to contribute other translations )
Internationalization is managed via XML. All GUI texts are read on startup, from the application configuration file (of course the language can also be changed during a session). The project includes a collection of useful methods for processing XML documents. You can easily use them for your own applications.
The configuration file looks like:
<!DOCTYPE Application SYSTEM "Config.dtd">
<Text GUIRelation="btnGenerateThumb">Generate Thumbnails -->
Within the application the language information is fetched via XPath. Sample calls:
XPathDocument XPathDoc = new XPathDocument(configFileName);
XPathNavigator nav = XPathDoc.CreateNavigator();
gbxSource.Text = XmlManager.GetValueFromXPath(nav,
gbxTarget.Text = XmlManager.GetValueFromXPath(nav,
- 09. March 2003: Initial release. See section "Supports"