imagick

Homebrew: install new formula php72-imagick

风流意气都作罢 提交于 2019-11-26 22:30:45
I need install imagick module on my php 7.2 I see brew search php72 ==> Searching local taps... ==> Searching taps on GitHub... ==> Searching blacklisted, migrated and deleted formulae... No formula found for "php72". Closed pull requests: ... php72-imagick 3.4.3 (new formula) (https://github.com/Homebrew/homebrew-php/pull/4267) How can I do it? Also I need support for argon It all changed back in April 2018 I think. Homebrew no longer acts as the package manager for PHP, so all the php-imagick and php-redis and php-other-extension stuff has gone and you are now supposed to manage PHP packages

Have GD get image from binary string

断了今生、忘了曾经 提交于 2019-11-26 22:26:34
问题 I have a database that stores images in a MySQL BLOB field. I setup a script that selects and displays the images based on an ID in the URL, and I also made it so if you append ?resize=800x600, it would resize the image (in this case, to 800x600). The host that I use doesn't have Imagemagick installed and won't let me do it myself, so I need to use PHP's GD library to resize the image. But I've yet to find a function like Imagick's readImageBlob() , so I can't edit the binary string that I

What is the best practice to export canvas with high quality images?

人盡茶涼 提交于 2019-11-26 21:59:38
I need your help. I explain my situation: I’m using fabric.js library to place shapes, text, etc. in my application. My canvas size has 1000x1000 pixels (about 26.45x26.45 centimeters). I have an image upload script only for upload images in high quality, like 300 dpi. Basically what I do is the following: - draw the canvas (uploading images, put text, etc…); - resize the canvas multiplying by scale factor to be able at the end to have an image with 300dpi; - save the canvas in PNG format; - using php/ajax and Imagick, put the canvas with 300 dpi quality, saving in jpg format. The problem is:

Imagick not loading images, with 'NoDecodeDelegateForThisImageFormat' error message

社会主义新天地 提交于 2019-11-26 20:59:55
问题 Trying to create a thumbnail, but i'm getting some errors and I have no experience with Imagick. Here is my PHP: <?php try { $imagick = new Imagick(); $imagick->readImage('C:\xampp\htdocs\ppa\032.JPG'); $imagick->thumbnailImage(800, 800); $imagick->writeImage('032(2).JPG'); } catch(Exception $e) { die('Error when creating a thumbnail: ' . $e->getMessage()); } ?> I then get this error code: Error when creating a thumbnail: NoDecodeDelegateForThisImageFormat `C:\xampp\htdocs\ppa\032.JPG' @

Issues porting PHP/GD wrapper to Imagick

◇◆丶佛笑我妖孽 提交于 2019-11-26 20:57:58
问题 I've recently discovered that Imagick can support color profiles and thus produce images of better quality compared to GD (see this question / answer for more details), so I'm trying to port my GD wrapper to use the Imagick class instead, my current GD implementation looks like this: function Image($input, $crop = null, $scale = null, $merge = null, $output = null, $sharp = true) { if (isset($input, $output) === true) { if (is_string($input) === true) { $input = @ImageCreateFromString(@file

How can I wrap text using Imagick in PHP so that it is drawn as multiline text?

六眼飞鱼酱① 提交于 2019-11-26 20:29:13
问题 The Imagick library in PHP allows you to draw text on top of an image. How can I tell Imagick to wrap the text based upon some bounded text box, so that the words appear as multiline text rather than a single line? 回答1: Usage: list($lines, $lineHeight) = wordWrapAnnotation($image, $draw, $msg, 140); for($i = 0; $i < count($lines); $i++) $image->annotateImage($draw, $xpos, $ypos + $i*$lineHeight, 0, $lines[$i]); Function: /* Implement word wrapping... Ughhh... why is this NOT done for me!!! OK

How to install Imagick/imagemagick PHP extension on windows 7

╄→гoц情女王★ 提交于 2019-11-26 18:37:38
How to install image magic in Windows 7. I followed these instruction To install IMagick on Windows XP (php 5.2.x) download and install ImageMagick-6.5.8-7 Q16-windows-dll.exe http://www.imagemagick.org/download/binaries/ ImageMagick-6.5.8-7-Q16-windows-dll.exe download php_imagick_dyn-Q16.dll from: http://valokuva.org/outside-blog-content/ imagick-windows-builds/080709/ copy dll to [PHP]/extension dir and rename it to php_imagick.dll You have to edit your php.ini file and add new extension extension=php_imagick.dll Save ini file and restart apache server. (If necessary, restart your windows)

How to use Imagick to merge and mask images?

ぐ巨炮叔叔 提交于 2019-11-26 17:57:44
问题 I know very little of image processing and even less of the terminology used, so please bear with me. Basically, I want to merge two images together where one of them will act as a mask. That image looks something like this: Where the blue and yellow background are both transparent in reality. This image is being used as a mask for regular photo's. Parts of the photo that 'stick out' of the circle need to be 'cropped' (be made invisible) while the inside remains visible. So everything that

Get/set DPI with PHP GD/Imagick?

南楼画角 提交于 2019-11-26 17:14:46
问题 I'm building a Web application that will handle image files that will ultimately be printed, large format. As part of this, I need to get (i.e. read) and set (i.e. change) the DPI of an image file. Is this possible through PHP GD or PHP Imagick? Thanks, BK Edit: The DPI of a image can be accessed through iMagick's getImageResolution method: public function getDPI() { $imgDPI = $this->image->getImageResolution(); return $imgDPI; } and the DPI of an image can be set through iMagick's

Wrap an image around a cylindrical object in HTML5 / JavaScript

谁说我不能喝 提交于 2019-11-26 16:38:02
问题 I want to wrap an image around a cylindrical object like mugs in a web app, like so This will likely be a base image (e.g. a jpeg image of a mug) containing a transformed image of a user uploaded image. There seems to be a lot of resources on this in PhotoShop. However, this is of course not appropriate for web, mobile or server environments. I also know this is possible, as a number of sites already do this extremely well. For example, Vista Print (see image), Asda Photos (and loads more on