Questions tagged [graphicsmagick]

GraphicsMagick provides a robust collection of tools and libraries that support reading, writing, and manipulating images in over 88 major formats. It is a fork of ImageMagick that focuses on performance, minimizing bugs, and providing stable APIs and command-line options.

GraphicsMagick provides more extensive API documentation than ImageMagick. The GraphicsMagick fork of was made in November 2002.

691 questions
4
votes
2 answers

How to write a loop in shell for graphicsmagick?

I managed (with the help of SO) to make perfect png-snippets from a pdf file with graphicsmagick. My pdf contains text and formula each "snippet" on a single page. My command trims the content of a page to the very content and finally scales this up…
Marco
  • 2,368
  • 6
  • 22
  • 48
4
votes
1 answer

gm convert: No decode delegate for this image format

I am getting the below error on an AWS EC2 instance (I specifically say that as I don't have an issue with this on my Mac): Error: Command failed: gm convert: No decode delegate for this image format…
Sean
  • 1,151
  • 3
  • 15
  • 37
4
votes
2 answers

Stitching images using GraphicsMagick with Blending

I have to stitch number of tiles using GraphicsMagick to create one single image. I am currently using -convert with -mosaic with some overlap to stitch tiles. But the stitched image has border where the overlap is done. Following is the command I…
Nitesh Saxena
  • 199
  • 15
4
votes
2 answers

What do they mean by quantum in GraphicsMagick

GM has build option quantum which defines the bitdepth to use when reading an image. Building GM with high quantum means that images of smaller bitdepth will take a lot more memory. What is the quantum here? Can anyone give me some resources…
4
votes
1 answer

Node.js GraphicsMagick not working ( Invalid Parameter - -resize)

I am trying to use Graphics Magick to resize an image. I have installed the latest GrapchicsMagick and ImageMagick versions. I have installed npm install gm npm install im too. My node.js code is: var gm = require('gm').subClass({imageMagick:…
4
votes
2 answers

GraphicsMagick / ImageMagick replace all non-transparent pixels (like Photoshop's Color Overlay)

I'm trying to replace all non-transparent pixels to a given color using GraphicsMagick for Node. Using a composite image is not an option, I simply need to change every non-transparent pixel to a given color. Original image: Goal: Transparent…
Adriaan Meuris
  • 351
  • 2
  • 12
4
votes
0 answers

Colorize grayscale image using graphicsmagick

I'm having trouble colorizing (not sure if that's the correct term) a grayscale image using graphicsmagick. Here is my starting image. This is what I would like the result to be like. It doesn't necessarily have to be green, but I would like to be…
Jako
  • 4,731
  • 7
  • 39
  • 54
4
votes
3 answers

Resize and compose two or more images using gm in Nodejs

Given two images, say under img (in size of 1024x768) folder (img1.png and img2.png), I need to resize img2 (say 300x300) and put on img1 in x and y (say 100, 200) from top left of img1. The end result should be 1024x768 size image. Using gm…
Ahmet Cetin
  • 3,683
  • 3
  • 25
  • 34
4
votes
1 answer

Recipe to generate Windows ICO files with Graphicsmagick

Based on this question for imagemagick, what is the equivalent for graphicsmagick? Recipe for creating Windows ICO files with ImageMagick? Also I just want to generate a fully transparent ico file with multiple sizes. I found that there's an xc:none…
CMCDragonkai
  • 6,222
  • 12
  • 56
  • 98
4
votes
1 answer

Not able to install both GraphicsMagick and ImageMagick

In my ubuntu server I have two apps, one is using GraphicsMagick and one is using ImageMagick but I am not able to install both GraphicsMagick and ImageMagick, when I am installing one then it is replacing the /usr/bin/convert and the convert…
4
votes
2 answers

PSD to PNG Conversion does not match

When converting a PSD file with a transparent background using GraphicsMagick, my PNG image is more "dull/lighter" than the source image. I've used the following gm mogrify -level (with countless options) gm mogrify -modulate (with countless…
bitmvr
  • 99
  • 1
  • 8
4
votes
2 answers

Graphicsmagick not working in Elastic Beanstalk with nodejs and S3

I'm using nodejs and graphicsmagick to process images with text, then streaming the final jpg to S3. Using postman, I was able to test this flow on my localhost and everything works fine. However, I'm having issues now that I moved it to Elastic…
4
votes
1 answer

How to crop to multiple images using GraphicsMagick

According to the GraphicsMagick man page I can create multiple tiles from an image by using -crop without an offset: If the x and y offsets are omitted, a set of tiles of the specified geometry, covering the entire input image, is generated. The…
user2350086
  • 111
  • 1
  • 8
4
votes
1 answer

How to create a thumbnail that fills a certain area in meteor with CollectionFS and graphicsmagick

Right now I'm using the code here: https://github.com/CollectionFS/Meteor-CollectionFS#basic-example Suppose I want a thumbnail 100x100. But say my image is 400x200, the code above will produce a thumbnail 100x50. What I want to happen in this…
Jared Martin
  • 653
  • 7
  • 20
4
votes
2 answers

Flood fill with Graphicsmagick or pgmagick

Question What is a good way to use flood fill with the Graphicsmagick command line or its pgmagick wrapper for python? Background So far this is what I have, but its saying that the signatures do not match: Code: from pgmagick import Image,…
Chris Dutrow
  • 48,402
  • 65
  • 188
  • 258