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

Apply watermark with text / image using GraphicsMagick

I need to be able to apply watermark on an image, using either text or another image. Getting it to work with an image was quite straight forward, using the following command: gm composite -dissolve 15 -tile logo.png image.jpg wmark_tiled.jpg Now,…
Giannis
  • 5,286
  • 15
  • 58
  • 113
8
votes
2 answers

GraphicsMagick CgBI unknown critical chunk

I am using GraphicsMagick and currently running into the following issue: when executing gm identify .png I'm getting the following error: gm identify: CgBI: unknown critical chunk (.png) gm identify: Request did not return an…
bknopper
  • 1,193
  • 12
  • 28
8
votes
1 answer

Converting a PNG buffer to a JPG in graphicsmagick in node

How do I convert a png buffer to a jpg without writing to a file?
8
votes
2 answers

Why smaller PNG image takes up more space than the original after getting resized by GraphicsMagic

The original PNG image is 800x1200 and takes up about 34K. After the images is resized by GraphicsMagick to 320x480 size, the resulting images takes up approximately 37K. (For comparison, if the image is resized with Paint on Windows 7 then the…
shargors
  • 2,147
  • 1
  • 15
  • 21
8
votes
3 answers

Problems when resizing cinemagraphs (animated GIFs)

I'm having issues resizing cinemagraphs. If you don't know, they are gifs where only a portion of the image is animated, compared to a regular gif where the entire image is animated. Here is a node.js example: //…
Jonathan Ong
  • 19,927
  • 17
  • 79
  • 118
7
votes
1 answer

Graphicsmagick: How to draw text to fit a specific box (width/height)

I'm using GraphicsMagick's node.js module. In my Node JS application I need to add a text label to an existing image, such that: 1) If the text is longer than the image size, the text auto-wraps around to the next line 2) If the text is not able to…
Gaurav Jain
  • 419
  • 4
  • 17
7
votes
3 answers

Using ImageMagick or GraphicsMagick on Azure Functions

I am trying to see if my company can use Azure Functions to automate conversions of TIFF files to a number of JPG and PNG formats and sizes. I am using Functions with Node.js, but other languages could be used. My problem is, that I can't get…
7
votes
3 answers

Graphicsmagick C++ API

I want to use the C++ API for graphicsmagick I need to convert image data directly from OpenCV and use graphicsmagick to save the file as tiff with group 4 compression The command line gm convert input -type bilevel -monochrome -compress group4…
clarkk
  • 27,151
  • 72
  • 200
  • 340
7
votes
1 answer

Meteor CollectionFS:S3 GraphicsMagick Does Not Resize Image

I'm using Meteor-CollectionFS and GraphicsMagick 1.3.22 to resize an image uploaded to Amazon S3. The image does not resize, it just appears in S3 full-sized. I also tried putting the resized images in a seperate store, but the image still appeared…
7
votes
1 answer

Meteor.JS CollectionFS Video to Image Thumbnails (Graphics Magick)

I am working on one Meteor App where I am using CollectionFS to upload Files. I am able to upload and generate thumbnails for Images. But my Issue is : How should I create thumbnails for Videos? I can see that it is possible via command line:…
Manu
  • 301
  • 2
  • 9
7
votes
1 answer

How can I create thumbnails of pdfs with node.js and gm

I'm using meteor(which is built on node) and CollectionCFS(which allows me to use gm[GraphicsMagick] for thumb-nailing). I do the following to have it automaticly create a thumbnail of uploaded images: new FS.Store.FileSystem("thumbs", { …
Jared Martin
  • 653
  • 7
  • 20
7
votes
4 answers

Get image dimensions from url path

I am trying to load the dimensions of an image from url. So far I've tried using GraphicsMagick but it gives me ENOENT error. Here's the code so far I've written. var gm = require('gm'); ... gm(img.attribs.src).size(function (err, size) { …
Mj1992
  • 3,404
  • 13
  • 63
  • 102
7
votes
3 answers

Generate Animated GIF with GM in Node.js

so i've been tackling this one for a few days and got the point when i'm ready to ask for help. I'm trying to generate an animated gif with in a node.js based app, using the graphicsmagic package. I've generated several slides that look kinda like…
Nikolay
  • 1,392
  • 1
  • 9
  • 15
7
votes
2 answers

graphicsmagick composite and crop in the same command

I need to get a specific crop of an image and put it over another image at a certain position and resized. I can crop the first image and save it to a file in one command and then I can composite the 2 images in another command. However, I would…
Dan Caragea
  • 1,784
  • 1
  • 19
  • 24
7
votes
1 answer

Enabling Gmagick PHP module causes ImageMagick (Imagick) module to report 0 supported formats

I'm trying to get both imagick and gmagick extensions enabled on the same machine (ubuntu 12.04 - though same problem in older versions). I have a working ImageMagick/Imagick installation - with 206 supported formats...up until the moment I enable…
Bryan Latten
  • 332
  • 3
  • 10
1 2
3
46 47