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
2 answers

File input without button

I've been trying to implement image upload with the following requirements: Drag and drop Display dropped image in a popup with option to resize image Upload image after preview and resize I'm trying to restrict my options to either bass jobsen's…
user1597438
  • 2,171
  • 5
  • 35
  • 78
0
votes
1 answer

Add watermark to image with imagick PHP

I'm adding watermark.png to original.png, but I have 3 problems: I want to set watermatk.png on the bottom right I want to resize watermark.png and make it smaller or bigger Is there any way to make watermark transparent if background was…
MiLaD TNT
  • 81
  • 3
  • 11
0
votes
1 answer

My php image server using Imagick produces much larger png8 files after cropping / scaling down

I'm trying to set up a simple PHP image server to allow me to add just large file for each of my images and then scale and crop them as needed. For my test file I start with a png8 exported via "save for web" from illustrator of size 2400 x 1200,…
0
votes
0 answers

composite Image using Imagick php function with transperent

i create image using Imagick function . i use wood.png as row image , 1.jpg is over right on wood.png . problem is i need to see wood image as transparent of 1.jpg. i also upload result.png but we need same as need.png. $width = 300; $height =…
Pratik Kamani
  • 758
  • 7
  • 23
0
votes
0 answers

Mask text with imagick php

The following code is a very basic example of imagick's Imagick::annotateImage() function. How would I go about masking the top half of the text while retaining the background image?
user1661677
  • 1,252
  • 5
  • 17
  • 32
0
votes
0 answers

Cannot draw proper rectangular border with ImageMagick PHP

I am using PHP ImageMagic and I am trying to put a border around a Rectangle. I am following this, and this to create the border. It seems to be working fine for them, but for me, if I make the stroke width more than 2, it starts to break. Here is…
Parthapratim Neog
  • 4,352
  • 6
  • 43
  • 79
0
votes
0 answers

Imagick CompositeImage feezes when destination is a bit out of the source

I'm trying to overlay a background image with many little icons. Sometimes, one of them goes over the edges of the background image, and this seems to make Imagick freeze. (The image generation takes a loooong time and at the end no image is…
Thaledric
  • 539
  • 2
  • 8
  • 17
0
votes
0 answers

Imagick extension shows on phpinfo but shows error unable to load dynamic library when running simple php command in command prompt

Successfully install imagick into my system and able to loaded imagick extentsion (appears in phpinfo) but when running simple php command, such as php -v in my command prompt, it shows error PHP Warning: PHP Startup: Unable to load dynamic…
Eric Lie
  • 1
  • 2
0
votes
1 answer

Imagick Wrong JPEG library version

I'm trying to resize some images using PHP and Imagick, however when I do so I get this error: ImagickException: Wrong JPEG library version: library is 80, caller expects 62 There's very little on internet about the problem, although there are a few…
Noodles
  • 900
  • 4
  • 14
  • 30
0
votes
1 answer

Best practice in converting large volumes of images (imagick and PHP)

I've already setup and finished coding the conversion of images from jpeg/png to webp. I will be using it to convert hundreds of images. But PHP has a timeout limit and changing it into large number is a bit unorthodox (or is it?). Right now the way…
Jed
  • 1,054
  • 1
  • 15
  • 34
0
votes
1 answer

Fat Free: Unable to load dynamic library 'imagick.so'

Having this Fat Free error on my shared linux hosting. Checked all requirements and all seems okay. Fatal error: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - libMagickWand.so.2:…
Orion
  • 125
  • 11
0
votes
1 answer

Function in WordPress Plugin Not Looking in Path for Imagick

I have inherited a site with a custom plugin that is supposed to decrypt member information and a captured signature and put it into a PDF. The function uses (in this order) TCPDF to create the document; jSignature to convert the decrypted signature…
Sally Gradle
  • 13
  • 1
  • 3
0
votes
0 answers

Converting 8 Bit Images to 16 bit with Php ImageMagick

What I'm trying to do is convert an 8 bit image to a 16 bit image using php ImageMagick. With Imagick it's as easy as convert /location/image.jpg -colors 8 -depth 16 txt:-. In the PHP docs it shows that you can do it using…
stwhite
  • 3,156
  • 4
  • 37
  • 70
0
votes
1 answer

Imagick combine images

I use Imagick to combine few images into one, here is code: foreach($this->images as $image) { $stack->addImage($image['imagick']); } $montage = $stack->montageImage(new ImagickDraw(), $placing, $this->resultWidth."x".$this->resultHeight, 0,…
nv2 nv2
  • 15
  • 3
0
votes
1 answer

Suddenly getting ImageMagick "no decode delegate" errors?

I run a site that lets people upload JPEGS, that are then resized and have a .png watermark applied over the top of them. As of today, a lot of the uploads are failing. Uncaught ImagickException: no decode delegate for this image format `PNG' @…
Codemonkey
  • 4,455
  • 5
  • 44
  • 76
1 2 3
99
100