Unzoom pictures in PHP
开发者_开发问答Let's say I have a 200x100px picture. Is there any PHP function or PHP library function that can unzoom such a picture?
So I would call something like:
$new_picture = unzoom($picture, $percentage);
// and the new picture will be smaller based on $percentage
Any ideas?
There are several options:
imagecopyresampled()
using GDImagick::resizeImage()
using ImageMagick- Cairo, Gmagick
See also: http://www.php.net/manual/en/refs.utilspec.image.php
精彩评论