LET ME SUMMARIZE THIS TOPIC.... I have posted two different modifications here. I'll call them Mod1 and Mod2. The first one, Mod1, presented in this first post demonstrates a simple code change that will cause cropping of larger images. I don't recommend this change unless you want it. Mod2 on the other hand, will ensure even the smallest uploaded images are shown properly in thumbnail images (without excess white-space). The only drawback with Mod2 is that watermarks on images probably wont work. Using both Mod1 and Mod2 will guarantee no white-space ever, but "tall" images may be cropped more than you'd like. Your choice.
The white border around my thumbnails after they've been re-sized has bothered me, so I set out to fix it today. This doesn't help with really small pics, but it does with larger ones.
Currently, it looks like thumbnails are re-sized so that no cropping occurs. I suppose that's good, but when the re-sized image is overlaid on the new white background image, this can create an unsightly white border (as called the "white space" issue).
To fix this, I've reversed the way the image is re-sized, ensuring that no empty space exists, with some minor cropping to the thumbnail only. I have not tested this with watermarks.
THE FIX - this is a simple change, going from the characters >= to <.
Edit file: /oc-includes/osclass/classes/ImageResizer.php
On line 73, change:
if(($w/$h)>=($width/$height)) {
to
if(($w/$h)<($width/$height)) {
My initial tests show this works. Still some more playing to do, but so far so good!
I've attached an image showing two "before" and "after" examples. One taken from my carousel, and one from "Latest Ads".