Posted by d on 10/13/15 11:39
<f.amann@rona.at> wrote in message
news:1139498869.829399.70920@g44g2000cwa.googlegroups.com...
> thank you... the problem was that i just turned my brain on yet ;-)
>
> the factor i used was: $factor = $newWidth * $Pic[ 0 ][ ImgWidth ];
> but i want to resize, so the factor should be this: $factor = $newWidth
> / $Pic[ 0 ][ ImgWidth ];
>
> after debugging my $factor the newWidth and newHeight parameters for
> the imagecreatetruecolor command were correct!
Good work :)
Still - don't forget the imagedestroy() function, or caching your
thumbnails - they'll save you a LOT of work down the road.
dave
Navigation:
[Reply to this message]
|