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
1
vote
0 answers

PHP Convert jp2 to jpeg output

Using strictly the gmagick or imagick libraries for PHP I am trying to convert jpeg2000 data to browser-compatible jpeg. The jp2 works fine, but trying to convert to jpeg seems to just return the same data, no conversion being done. $image = new…
user2280032
  • 372
  • 2
  • 5
  • 16
1
vote
0 answers

GraphicsMagick not applying svg filters while converting to png

Can someone help identify the problem here. Consider this SVG markup.
S8N
  • 147
  • 7
1
vote
2 answers

Cropping an image from the center into the largest square you can make in Yii2 Imagine?

I'm using the Yii2 extension Imagine and I need to make 150x150 images from user uploads. Currently I am just doing something like this: use yii\imagine\Image; .... Image::thumbnail($save_path, $img_size, $img_size)->save($save_path); Obviously…
Brett
  • 19,449
  • 54
  • 157
  • 290
1
vote
0 answers

load Gmagick class from wrong namespace

i want to work with Gmagick i wrote this code $image = new \Gmagick(); $image->readimage($file); , and i have this error : Attempted to load class "Gmagick" from the global namespace. Did you forget a "use" statement?
B.Abdo
  • 23
  • 6
1
vote
0 answers

How to flood fill the frame with a pattern image using imagick php class?

I want to flood fill the frame with tiled image instead of color. Currently im using this codes $imagick = new \Imagick('image.jpg'); $imagick->scaleImage(300, 300, false); // Create frame placeholder $imagick->frameimage( 'red','30','30', 30,…
webdev
  • 23
  • 4
1
vote
1 answer

ImageMagick takes long time to convert SVG with text to JPEG

We are using ImageMagick (Version: ImageMagick 6.9.1-7 Q16 x86_64) and its PHP extension Imagick on our LAMP stack to convert SVGs to JPEGs and it is taking an abnormally long amount of time when the SVG contains any text (12-13 seconds /…
1
vote
1 answer

Gmagick extension will not start in Ubuntu server

I have been attempting to install the gmagick php extension, but keep getting the error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/gmagick.so' - /usr/lib/php5/20100525/gmagick.so: undefined symbol:…
Leepoff
  • 134
  • 2
  • 6
1
vote
0 answers

Gmagick fails to install from source

I'm trying to install gmagick php extension from source, using these commands: mkdir gmagick cd gmagick mkdir build mkdir local cd $HOME/gmagick/build wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.18.tar.gz tar…
1
vote
3 answers

create GIF animation using Gmagick

I have some jpg files i want to create gif animated from them. i cant find useful method in gmagick for this problem. any one know about it? I need simple example for it. ty
0
votes
1 answer

how to install gmagick extension of php on windows vista

gmagick is newer version of imagemagick with more set of features it is less resource intensive and fast but the problem is there is very few discussion about this wonderful tool on web i recently came across this on …
sohaan
  • 637
  • 1
  • 10
  • 18
0
votes
3 answers

Image processing extension for php

I am looking for an image processing extension for PHP. I know about gd but it does not have all the features I need. I want to crop, resize, compress images, generate images on the fly, create thumbnails of images, etc. I would like to know which…
sohaan
  • 637
  • 1
  • 10
  • 18
0
votes
1 answer

PHP Gmagick extension

Is there a way to get all the colors of an image? Example this image The output should have the colors: yellow,black,blue. It can also result in a Hex Value. Can someone tell me any idea how to get that result? or maybe someone has already…
PinoyStackOverflower
  • 5,214
  • 18
  • 63
  • 126
0
votes
0 answers

Imagick/Gmagick crashing on Hostinger when converting PDF to jpg

I'm trying to get it to work using PHP on Hostinger. I have tried the following: $white=new Imagick($fichero["tmp_name"]); $white->setImageFormat('jpg'); $nombre = explode(".", $fichero["name"]); $white->writeImage($path.$nombre[0].'.jpg');…
0
votes
1 answer

How to install gmagick under OSX with phpbrew?

I tried to install gmagick PHP extension in a regular for PHPBrew way with: phpbrew ext install gmagick. But it kept failing, even though gmagick itself is already installed in my system with: brew install gmagick. Then I found out that PHPBrew is…
0
votes
1 answer

Yii2 'Your system does not support any of these drivers: gmagick,imagick,gd2'

The problem is like this : i am following a yii tutorial in order to learn more about the framework, the tutorial is https://www.youtube.com/watch?v=whuIf33v2Ug&t=11365s and i found myself strugalling at 2:55:31 ( thumbnail resize ) , i installed…