Closed GoogleCodeExporter closed 9 years ago
Exactly, I downloaded from svn today, and made few changes in the code to
behave like that:
before the line ~128 "$canvas = imagecreatetruecolor ($new_width, $new_height);"
I added this code, to avoid a image to stretched when the size is less than the
max:
if ($new_width > $width || $new_height > $height) {
$new_width = $width;
$new_height = $height;
}
// create a new true color image
$canvas = imagecreatetruecolor ($new_width, $new_height);
Original comment by hiddenat...@gmail.com
on 14 Feb 2011 at 7:20
Hi - this is now in the core theme. More info here:
http://www.binarymoon.co.uk/2011/03/timthumb-proportional-scaling-security-impro
vements/
Original comment by BinaryMoon
on 4 Apr 2011 at 7:59
Original issue reported on code.google.com by
comlo...@googlemail.com
on 17 Dec 2010 at 12:39