Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP Resize

function adaptiveResizeImage($image_path, $width, $height, $bestFit)
{
    $imagick = new Imagick(realpath($image_path));
    $imagick->adaptiveResizeImage($width, $height, $bestFit);
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}
Source by phpimagick.com #
 
PREVIOUS NEXT
Tagged: #PHP #Resize
ADD COMMENT
Topic
Name
9+4 =