In image_display() in image.module, I think this section:
list($width, $height) = explode("x", $v);
if ($w > $width || $h > $height) {
// if this image has not been created then create image.
... should look like this:
list($width, $height) = explode("x", $v);
if ($w >= $width || $h >= $height) {
// if this image has not been created then create image.
Let me know if I should submit a formal patch.
Comments
Comment #1
David Hull commentedI'm using the 4.5.0 version of the image module, and I agree that the code looks to me like it has a similar problem. Here's my attempt at a patch (I wrapped the patch with the php tag because, unlike code, it respects the whitespace):
Comment #2
Stefan Nagtegaal commentedFixed in CVS for ages.
Comment #3
(not verified) commented