Don't upscale the images larger than the original.
This commit is contained in:
parent
e0ba6fbc02
commit
f90077154f
1 changed files with 2 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue