Questions tagged [imagick]

Imagick is a native php extension to create and modify images using the ImageMagick library. Please upload example images to imgur.com (or other site) if your question is asking why Imagick is not producing the images you are expecting, so that people can reproduce your problem.

Imagick is a PHP extension to create and modify images using the ImageMagick library. There is also a version of Imagick available for HHVM. Although the two extensions are mostly compatible in their API, and they both call the ImageMagick library, the two extensions are completely separate code-bases.

ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF.

The documentation for PHP Imagick is in the PHP Manual. A large number of examples for Imagick with code and the expected output are at PHPImagick.com


Resources :

1893 questions
6
votes
3 answers

Imagick doesn't render svg opacity properly

I need same output from Inkscape and Imagick. This is the expected result, exported from Inkscape. However, the PHP code below outputs the following faulty result. PHP code:
Jan Tojnar
  • 5,306
  • 3
  • 29
  • 49
6
votes
1 answer

Imagick::resizeImage generates black image

When I tried to resize an image using imagemagick it generates a full black image. Below is my PHP code $image = new \Imagick( 'test.jpg' ); $image->resizeImage( 90, 90, Imagick::FILTER_LANCZOS, 0, TRUE ); $image->writeImage(…
Balaji
  • 850
  • 7
  • 15
6
votes
3 answers

Receiving invalid filename error when converting first page of pdf to jpg

I'm using imagick to convert a pdf to a jpg in a script I have...it works fine if I give the direct path to the uploaded pdf without the page specified, but when I add the [0] onto the end of the file path to specify that I only want to read the…
kevindeleon
  • 1,914
  • 3
  • 18
  • 30
6
votes
4 answers

Laravel - Imagick not installed

using Laravel and trying to work on image upload using Imagine. The issue is that I get the error stating: Imagine \ Exception \ RuntimeException Imagick not installed Open:…
Lovelock
  • 7,689
  • 19
  • 86
  • 186
6
votes
2 answers

Where to find php_imagick.dll for php 5.5.12 for Windows wampserver 2.5?

I am using Wampserver 2.5 on my Windows 7 (32 bit) and my PHP version is 5.5.12. I am unable to use IMAGICK. I have installed IMAGICK version 6.8.9 on my system and it works like charm on the command line. Further, I have followed instructions to…
Mike Kevin
  • 86
  • 1
  • 1
  • 5
6
votes
1 answer

xampp can't load imagick - incompatible library versions

My goal is to convert pdf files to images so i can use them as thumbnails on a website. I use codeigniter and XAMPP. However Im running into problems when trying to load the php wrapper to image magic. What i have done: I used brew to install…
Johan
  • 187
  • 2
  • 8
6
votes
4 answers

Imagick - Can't read image files from URL.

I'm using this snippet for reading images on different websites: $image = new Imagick('http://lp.hm.com/hmprod?set=key[source],value[/model/2012/P01 05156 06204 80 1175…
superhero
  • 6,281
  • 11
  • 59
  • 91
6
votes
2 answers

gem install rmagick -v 2.13.1 error Failed to build gem native extension on Mac OS 10.9.1

I have tried everything by giving path of MagickWand.h, I have command tools installed. Can anyone help me out ? $ gem install rmagick -v 2.13.1 Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR:…
user3148077
  • 63
  • 1
  • 3
6
votes
3 answers

adding Imagick in xampp

I have followed the following steps in http://bytehash.appspot.com/2012/02/Installing-imagick-for-php-in-windows-under-xampp i have downloaded the dll file for imagick and added this into xampp/php/ext folder and included it as follows:…
Liam Sorsby
  • 2,912
  • 3
  • 28
  • 51
6
votes
2 answers

Dynamic image creation/Apache headers using Imagick

While transferring an existing, stable, website to a new server I've run into an intermittent problem with a bit of code that creates images dynamically using Imagick. The code parses a GET query (eg…
fred2
  • 1,015
  • 2
  • 9
  • 29
6
votes
1 answer

How to know if imagick throws an error - PHP

I am currently using imagick for image processing on my webssite. I have it correctly installed and is working great. Heres my starting code -: $image = new imagick($filename); $geo=$image->getImageGeometry(); $image->setImageInterlaceScheme(2); …
sanchitkhanna26
  • 2,143
  • 8
  • 28
  • 42
6
votes
3 answers

Trying to get imagick running on PHP 5.4.3 at Windows x64

I have Windows 7 64 bits, PHP 5.4.3 installed through WAMP 2.2 and imagick (ImageMagick-6.8.3-9-Q16-x64-dll.exe). I tried to use the php's dll of imagick from a lot of sources but all of them give this error in apache_error.log: PHP Warning: PHP…
Frederico Schardong
  • 1,946
  • 6
  • 38
  • 62
6
votes
2 answers

Imagick on heroku - is it possible?

I need to do some actions on jpeg images - Heroku's PHP GD does not allow that. I've read that it is possible with Imagick, so i rewritten the code, pushed it to heroku and... PHP Fatal error: Class 'Imagick' not found in [...] So am I doing…
anonim1133
  • 95
  • 1
  • 7
5
votes
4 answers

How to install ImageMagick on MAMP?

I'm running OSX Leopard with MAMP (a sandbox consisting of Apache/MySQL/PHP). I installed ImageMagick using MacPorts by following this tutorial: http://www.brybot.ca/archives/getting-imagemagick-and-more-to-work-with-mamp-on-os-x/ Then I added…
lo_fye
  • 6,790
  • 4
  • 33
  • 49
5
votes
5 answers

imagick installation issues on the lion

Currently i'm having issues with installing imagick correctly on the mac lion with MAMP. I have ImageMagick-6.7.3 successfully installed. I've tested out the calls on command line. Note: The bin folder of the ImageMagick-6.7.3 has Magick-config,…
darewreck
  • 2,576
  • 5
  • 42
  • 67