in reply to Re: Re: Re: Re: GD.pm copyResized / copyResampled errors
in thread GD.pm copyResized / copyResampled errors
if ((($fileWidth gt $maxThumbSize) || ($fileHeight gt $maxThumbSize)) +|| ($retype eq "yes")) { if ($fileWidth gt $fileHeight) { $scalefactor=$maxThumbSize/$fileW +idth; } else { $scalefactor=$maxThumbSize/$fileHeight; } $thumbWidth = int($fileWidth*$scalefactor); $thumbHeight = int($fi +leHeight*$scalefactor); } else { $thumbWidth=$fileWidth; $thumbHeight=$fileHeight; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
GD.pm copyResized / copyResampled errors
by brianviehland (Initiate) on Feb 06, 2004 at 20:29 UTC |