Don't upscale the images larger than the original.

This commit is contained in:
Sébastien Lucas 2013-07-05 11:12:22 +02:00
parent e0ba6fbc02
commit f90077154f
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@
$h = $size[1];
//set new size
$nw = $_GET["width"];
if ($nw > $w) { break; }
$nh = ($nw*$h)/$w;
}
else{
@ -65,6 +66,7 @@
$h = $size[1];
//set new size
$nh = $_GET["height"];
if ($nh > $h) { break; }
$nw = ($nh*$w)/$h;
}
else{