Resize Image By PHP Script
Hi Wait is over now the PHP script library now providing the feature to resize any type of the image into the smaller size.
As we use most of the web programming to resize the images many time. And try to do not reduce the quality of the image. So you can do this by the following code and resize the image as it is.
<?php
$thumb = new Imagick();$thumb->readImage('myimage.gif');
$thumb->resizeImage(320,240,Imagick::FILTER_LANCZOS,1);
$thumb->writeImage('mythumb.gif');
$thumb->clear();
$thumb->destroy();
?>
you can use the above code to resize any type of the image.
Resize Image
Hi Wait is over now the PHP script library now providing the feature to resize any type of the image into the smaller size.
As we use most of the web programming to resize the images many time. And try to do not reduce the quality of the image. So you can do this by the following code and resize the image as it is.
<?php
$thumb = new Imagick();$thumb->readImage('myimage.gif');
$thumb->resizeImage(320,240,Imagick::FILTER_LANCZOS,1);
$thumb->writeImage('mythumb.gif');
$thumb->clear();
$thumb->destroy();
?>
you can use the above code to resize any type of the image.
Resize Image
No comments:
Post a Comment