
Taha Paksu - 2012-09-06 06:50:07 -
In reply to message 2 from aurel
yes, it's not very hard to calculate the ratio outside this class like:
list($width, $height, $type, $attr) = getimagesize("img/flag.jpg");
$ratio = 0.7;
$newWidth = $width * $ratio;
$newHeight = $height * $ratio;
and then the resizing process.