gmagick

How to flood fill the frame with a pattern image using imagick php class?

不羁的心 提交于 2019-12-23 03:54:32
问题 I want to flood fill the frame with tiled image instead of color. Currently im using this codes $imagick = new \Imagick('image.jpg'); $imagick->scaleImage(300, 300, false); // Create frame placeholder $imagick->frameimage( 'red','30','30', 30, 0); // Flood fill with color $imagick->floodFillPaintImage('green', 10, '#6e0000',0, 0,false ); header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); and the result: but i want a result like this Thank you very much! 来源: https:/

Can't install gmagick on Windows 7 XAMPP

僤鯓⒐⒋嵵緔 提交于 2019-12-11 02:06:42
问题 I have XAMPP 1.8.1 with PHP 5.4.7 installed. When I add php_gmagick_ts.dll to my php.ini (I made sure that I need the ts and not the nts version), upon restarting Apache I'm getting these errors: The procedure entry point php_checkuid_ex could not be located in the dynamic link library php5ts.dll and after that one: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_gmagick_ts.dll' - The specified procedure could not be found. Any help? 回答1: AFAIK there is currently no

How to flood fill the frame with a pattern image using imagick php class?

心已入冬 提交于 2019-12-06 14:53:33
I want to flood fill the frame with tiled image instead of color. Currently im using this codes $imagick = new \Imagick('image.jpg'); $imagick->scaleImage(300, 300, false); // Create frame placeholder $imagick->frameimage( 'red','30','30', 30, 0); // Flood fill with color $imagick->floodFillPaintImage('green', 10, '#6e0000',0, 0,false ); header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); and the result: but i want a result like this Thank you very much! 来源: https://stackoverflow.com/questions/33490101/how-to-flood-fill-the-frame-with-a-pattern-image-using-imagick-php-class

PHP extensions not loading in phpinfo

只谈情不闲聊 提交于 2019-12-06 00:43:50
问题 So I'm running MAMP on Mountain Lion and I've installed gmagick and imagick using pecl, both are relase candidates (mainly because gmagick doesn't have a stable release and imagick 3.0.0 doesn't install, it gives a make error). The modules appear when I run php -i in the terminal but not in phpinfo(), I have checked the php.ini it is the same for both so that is not the issue.However I have installed bitset(which is a stable release) and it appears in phpinfo() and php -i. So my question is

Scale image according a maximum file size

核能气质少年 提交于 2019-11-30 09:51:45
问题 I'm using Imagick and like to scale an image to a maximum file size of 2.5MB I had a look to this SOF question: ImageMagick: scale JPEG image with a maximum file-size which is exactly what I want to do but the extent() method from Imagick does not have the size parameter: http://www.php.net/manual/en/imagick.extentimage.php Anyone knows how I could to it? At the moment I'm trying to calculate a coefficient between the original file size and the target file size to calculate a new resolution

Scale image according a maximum file size

半城伤御伤魂 提交于 2019-11-29 16:44:07
I'm using Imagick and like to scale an image to a maximum file size of 2.5MB I had a look to this SOF question: ImageMagick: scale JPEG image with a maximum file-size which is exactly what I want to do but the extent() method from Imagick does not have the size parameter: http://www.php.net/manual/en/imagick.extentimage.php Anyone knows how I could to it? At the moment I'm trying to calculate a coefficient between the original file size and the target file size to calculate a new resolution but found out that the resolution is not proportional to the file size. Update - The output format is