Questions tagged [gmagick]

Gmagick is a php extension to create, modify and obtain meta information of images using the GraphicsMagick API.

Gmagick provides a wrapper to the GraphicsMagick library. GraphicsMagick works with over 88 major formats including important formats like DPX, GIF, JPEG, JPEG-2000, PNG, PDF, PNM, and TIFF.

Gmagick consists of a main Gmagick class, a GmagickDraw class which is in effect a drawing wand and a GmagickPixel class of which instances represent a single pixel of an image (color, opacity).

40 questions
0
votes
0 answers

Converting PDF to JPEG generates ridiculously large /tmp files (using GMAGICK)

So I have a php script that takes a PDF and converts it to JPEG images. Everything was fine until today, but today I got this PDF, that for some reason cause the generation of very large files in my /tmp directory (like ~14 gigs, while the PDF file…
galdikas
  • 1,609
  • 5
  • 19
  • 43
0
votes
1 answer

Gmagick extension causing apache to endless restart

I compiled a Gmagick php7 extension on windows. It works fine in cli mode. But when I enable the extension and start httpd, apache seems to enter an endless loop of restarting. There is no error log, Apache just start and stop again and again. How…
0
votes
0 answers

How to add Gmagick class(Load library) to Codeception?

I'm trying to use Gmagick from codeception, and i get: [Error] Class 'Helper\Gmagick' not found or if i try calling Gmagick(); directly from the test: [Error] Class 'Gmagick' not found I've set up Gmagick and can use it i.e. if i create a…
0
votes
0 answers

a broken image, cant open it in php, how to resolve it? imagecreatefromjpeg():Unsupported marker type 0x22

maybe a broken image, it cant open in php. but it is work in web, emm, any browser. it work in photoshop and image viewer also. please ask it, 1,how to do can be make it work in php also? 2,if cant resolve it, how to hidden error message?…
hhniao
  • 49
  • 8
0
votes
1 answer

Install Gmagick on XAMPP (Mac OSX Yosemite)

I'm using XAMPP version 5.6.3-0 on Mac OS X 10.10.3 Yosemite and I want to install the Gmagick (https://pecl.php.net/package/gmagick) extension which is the PHP API of graphicsmagic. (http://www.graphicsmagick.org) So I downloaded gmagick and…
felidae
  • 81
  • 2
  • 7
0
votes
1 answer

How to flatten an animated GIF in a static image using Gmagick

What I want to do is to save only the first frame of an animated GIF in static image (non animated gif). Using Gmagick 1.1.2RC1 and GraphicMagick 3.1.18 I read heaps of posts talking about it. Some says that it was working in the previous version of…
maxwell2022
  • 2,818
  • 5
  • 41
  • 60
0
votes
1 answer

Output each individual animated GIF frame as visually intended

With some animated GIFs, for subsequent frames, the only data that is stored, is the difference compared to an earlier frame. Now, I've only just touched the surface of the internal workings of the data structure of (animated) GIFs, but I believe…
Decent Dabbler
  • 22,532
  • 8
  • 74
  • 106
0
votes
1 answer

Gmagick: Gravity constants are defined but there is no setgravity() method?

I'm programming in PHP and trying to utilize the Gmagick extension. According to the documentation, there is no setgravity() method as there is in Imagick, yet Gmagick defines the gravity constants. So how does one go about setting gravity in…
David Jones
  • 10,117
  • 28
  • 91
  • 139
0
votes
1 answer

gmagick geometry

I was running into the following issue: // $data contains some image data $gm = new gmagick; $gm->readImageBlob($data); $gm->resizeImage( 100, 50, gmagick::FILTER_LANCZOS, 1 ); $gm->readImageBlob($data); $gm->resizeImage( 140, …
baa2w
  • 314
  • 2
  • 11
0
votes
1 answer

Does Gmagick have a method like Imagick::thresholdImage?

I'm trying to create a scripts with PHP's pecl module Gmagick to remove a somewhat white background from an image. On the command line I use the following two commands for imagemagick: convert source.jpg \( +clone -fx 'p{0,0}' \) \ -compose…
1 2
3