Today's Windows Wednesday project is one that's a couple years old, but is a great tool for anyone who does any image/photo resizing (say like someone writing for a Coding4Fun blog ;)
This project by Brice Lambson is a Windows Explorer shell extension that besides what is does also provides a nice example of separating the extension from the primary work. In this case, the extension is C++ and the app itself is C#.
Remember the Image Resizer Powertoy for Windows XP? Well it's a decade later and we now have...
Image Resizer for Windows is a utility that lets you resize one or more selected image files directly from Windows Explorer by right-clicking. I created it so that modern Windows users could regain the joy they left behind with Microsoft's Image Resizer Powertoy for Windows XP.
Feedback & Support
If you need help installing or using the tool, use the Discussions tab to ask your question.
If you find a bug or think of a feature, use the Issue Tracker tab to submit your request.
If you love it, spread the word! (e.g. Tweet, Like, etc.)
GuidesA series of guides have been created to help you become more acquainted with Image Resizer. These guides cover a diverse range of topics and have been divided by role to keep the information as relevant to you as possible.
- User's Guide -- Covers the installation and use of Image Resizer
Frequently Asked QuestionsSometimes I get asked questions that aren't specifically related to using the software. I'll try to provide answers to those questions below.
- How can I donate to the Image Resizer project?Call me crazy, but I don't accept donations. My employer pays me enough to code. Everything I do outside of work, I donate to the community for free. The biggest contribution you can make is to spread the word: Tweet, Like, blog about, or do whatever you do to let your friends know just how handy this little utility can be!
- What formats does Image Resizer support?By default, image files with the following extensions can be resized: bmp, dib, gif, ico, jpe, jpeg, jpg, png, tif, tiff, wdp. However, Image Resizer will also be able to use any Windows Imaging Codecs (WIC) that have been installed. For example, after installing the Microsoft Camera Codec Pack, vendor-specific formats from Canon, Nikon, Sony, Olympus, Pentax, Leica, Minolta, Epson, and Panasonic can also be resized.
- Does Image Resizer use nearest-neighbor, bilinear, or bicubic interpolation?
Starting with version 3, Image Resizer actually uses a Fant resampling algorithm, which produces a higher quality output than all of these. For more information on the algorithm, see A Nonaliasing, Real-Time Spatial Transform Technique.
Here's a snap of the Solution, which compiled for me the first time (minus a Wix whine since I didn't have that installed)
As I mentioned, it's primarily two projects, the Shell Extension and the actual app.
What's nice about this is that if you're just looking for the image resizing logic, it's easy for mortals like me to find and look at (it's more complicated than you might think...)
Thanks go to Ed Tittel for his Image Resizer: Free, Handy Windows Explorer Shell Extension post which turned me on to this project...