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
0
votes
1 answer

PHP 5.5.12 php_imagick.dll is not working. %1 is not a valid W32 applicaiton

I want to install Php ImageMagick on my system. Working from two days but couldn't install it. I have the following configuration of my system : PHP 5.5.12, Wamp 2.5, Win64 but Php uses Win32 extensions. Here are the errors i am facing : Error…
Maha Dev
  • 3,915
  • 2
  • 31
  • 50
0
votes
0 answers

Change White to transparent in Imagick for PHP

I'm trying to create a map of the United States that updates as US presidential candidates are declared the winner of different states. To do this I have a bunch of state pictures in various colors (red, blue, striped, etc..) which I will stitch…
0
votes
1 answer

ImageMagick not working

I have tried using steps for installing ImageMagick from How to install ImageMagick for WAMP 2.5 and from Where to find php_imagick.dll for php 5.5.12 for Windows wampserver 2.5?. I am using Windows 10 and WAMP 2.5 with PHP 5.5.12. I install using…
sihao
  • 273
  • 2
  • 5
  • 19
0
votes
1 answer

NPM module to convert image to pencil sketch

I want to convert an image to pencil sketch using nodejs. I checked imagemagick npm and not able to find sketchImage method that is available with imagick php. I tried jimp npm and manually applied invert, gaussian but the gaussian is too slow and…
ayniam
  • 573
  • 2
  • 8
  • 27
0
votes
2 answers

Create a text with image magick

I am trying to create an image file which has a text and a transparent background. I used this command: convert -background black -fill blue \ -font Arial -pointsize 72 label: \ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam…
utdev
  • 3,942
  • 8
  • 40
  • 70
0
votes
1 answer

Imagemagick command in command line and windows powershell

I am trying to run an imagemagick command line in my windows powershell but it does not work, if I run it in my regular command line it does work. The command looks like this: (I do not need the linebreaks, I just put them so that the command is…
utdev
  • 3,942
  • 8
  • 40
  • 70
0
votes
0 answers

Uncaught ImagickException: WriteBlob Failed

Currently getting the following error: Error at framework/filesystem/ImagickBackend.php line 25: Uncaught ImagickException: unable to open image `/{project-root}/assets/Ad_202.png': No such file or directory @ error/blob.c/OpenBlob/2695…
JustinTBrown
  • 157
  • 1
  • 10
0
votes
2 answers

Imagemagick stick images next to each other

How can I create an Image using Imagemagick in which I stick for example 6 images next to each other, thus the background shall be transparent(.png file). It shall look something like this: ( The black rectangles shall represent images ) How do I…
utdev
  • 3,942
  • 8
  • 40
  • 70
0
votes
1 answer

Image magick create img with specific pixel width

I am creating this image: using this command: convert -size 720x480 xc:black -strokewidth 5 -stroke lime -draw "line 105,400 205,400" -stroke blue -draw "line 105,405 205,405" -stroke blue -strokewidth 2 -draw "rectangle 140,150 260,230 " -draw…
utdev
  • 3,942
  • 8
  • 40
  • 70
0
votes
3 answers

PHP crop animated gif

Is it possible somehow to crop animated gif with builtin php libraries, ie without using Imagick etc? Thanks ;)
Somebody
  • 9,316
  • 26
  • 94
  • 142
0
votes
0 answers

Cut rectangle out of image after applying several transformations

I want to cut a renctangular shape out of an image. I know the position of the rectangle relative to the orginal image. However: When I rotate/scale/translate the image, the image dimensions changes. So my crop to the rectangle does not work…
Fuzzyma
  • 7,619
  • 6
  • 28
  • 60
0
votes
1 answer

PHP - cropping image

I have got this image : And i need to crop the top and bottom, so i will get this : I was searching for a while, but did not find a solution, it needs to be done in PHP.
Tadeáš Jílek
  • 2,813
  • 2
  • 19
  • 32
0
votes
0 answers

Image Magick - import SVG file with layers

Is it possible to import an PSD or SVG file into Image Magick, and keep its layers? For example, I would like to keep: Text layer editable and Shadow/overlay layer separate
Aleg
  • 1
  • 2
0
votes
0 answers

Most stable ImageMagick and php_imagick.dll combination for PHP 5.6?

This might be a Superuser question, but I've seen other installation question here, so: I am running PHP 5.6.23 on Apache 2.4.23, VC11, x86 - to mimic my host's environment. Now I'm trying to get Imagick to run and the latest versions (ImageMagick…
Warwick
  • 925
  • 1
  • 10
  • 22
0
votes
1 answer

How to get JPEG image from PDF using other php library than Imagick?

I was using Imagick to generate thumbs in JPEG from pages of a PDF document. My local server for test never be able to do it, I always got a Ghostscript error. I was developing directly in my website host but now it stop working, it seems since…
Gustavo
  • 1,673
  • 4
  • 24
  • 39
1 2 3
99
100