Re: [phpexperts] Re: Image Resizing
- Thanks Hasin Vai...It's really handy and easy to understand.And I would like to thanks all members of this group..Sohag
Day Dreamer <augustwind16@...> wrote:
Hello Mr. Oshim,
I think mahbub is right and it needs ImageMagic library to be
installed. A better solution could be this.
# I assume the orriginal image is of JPEG format
$desired_height = 300;
$desired_width = 400;
$im_dst = imagecreate($desired_width, $desired_height);
$im_org = imagecreatefromjpeg($filename);
list($width, $height, $type, $attr) = getimagesize($filename);
Visit Dynamic URL Shortening System : http://www.magicurl.info
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.