griz wrote:Yes Blade, I agree... however, if you work with evenly divisible numbers (as I discussed above) there is less quality loss. That's my point. You can see this effect when you zoom in and out of a bitmap in photoshop (notice the zoom percentage). As for a smarter algorithm you don't need one if you're reducing a 320x200 to 10% or 32x20. You're grabbing every tenth pixel and there's no working with subpixels at all = best quality.
Grabbing every tenth pixel ( a 100:1 reduction) would indeed be a lossy reduction. A smart reduction would select a 2 dimensional median (you need to consider both directions).
A smarter solution might create an edge map, then reduce the to the median color giving extra weight to the edge map.
But going to a thumbnail image is very small, and no smart reduction will have much effect.
Personally, I have programs that reduce/enlarge images to 25% of my screen, and have no complaints with the quality I am getting.