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
85
votes
7 answers

What is the difference between ImageMagick and GraphicsMagick?

I've found myself evaluating both of these libs. Apart from what the GraphicsMagick comparison says, I see that ImageMagick still got updates and it seems that the two are almost identical. I'm just looking to do basic image manipulation in C++…
QbProg
  • 1,675
  • 1
  • 14
  • 18
54
votes
1 answer

What is actual difference between GraphicsMagick and ImageMagick?

What is the actual difference between the GraphicsMagick and the ImageMagick libraries (source to compare list or article needed)?
Y.N
  • 4,989
  • 7
  • 34
  • 61
34
votes
10 answers

Error: spawn ENOENT while using GM in node

When I try to resize an image like this: gm('public/uploads/1710410635.jpg') .resize(240, 240) .noProfile() .write('public/uploads/1710410635_t.jpg', function (err) { …
Olivier_s_j
  • 5,490
  • 24
  • 80
  • 126
32
votes
7 answers

How can I install GraphicsMagick or ImageMagick on AWS Lambda?

I am using the gm package for Node.js along with the default ImageMagick installation that is available on AWS Lambda. const gm = require('gm').subClass({ imageMagick: true }); For some reason, the resize functionality fails for certain images. …
wprl
  • 24,489
  • 11
  • 55
  • 70
31
votes
4 answers

how to pass image buffer data to gm in() GraphicsMagic

var buf = require('fs').readFileSync('test.jpg'); gm().in('-page', '+0+0').in(buf,'test.jpg').write('output.jpg', function (err) { if (err) console.log(err); }) in this case i want to pass buffer data as input to the gm.in() method. Below is…
Bharat Bhushan
  • 2,077
  • 2
  • 21
  • 34
30
votes
2 answers

JNI - Passing large amounts of data between Java and Native code

I am trying to achieve the following: 1) I have a byte array on the java side that represents an image. 2) I need to give my native code access to it. 3) The native code decodes this image using GraphicsMagick and creates a bunch of thumbnails by…
Rajiv
  • 2,587
  • 2
  • 22
  • 33
29
votes
5 answers

Resize and crop image and keeping aspect ratio NodeJS & gm

I've been trying to create some thumbnails using the gm package from NodeJS, but I'm out of lucky. I need to resize images bigger than 600x600 (could be any width/height, starting from the given one) but when I pass the size to gm, it creates an…
user3277539
  • 293
  • 1
  • 3
  • 4
27
votes
1 answer

Installing GraphicsMagick on Mac OS X 10.8

I am trying to install GraphicsMagick on Mountain Lion and having problems. I tried all the things that I could search for in blogs and other stackoverflow questions but nothing worked. So I have put the full stack of errors I get on each command.…
Saransh Mohapatra
  • 9,430
  • 10
  • 39
  • 50
20
votes
5 answers

GraphicsMagick: toBuffer() Stream yields empty buffer

I am trying to read a file into a buffer, resize it and then write it to disk using the following example code: function processImage(data) { gm(data, 'test.jpg') .resize('300x300') .background('white') .flatten() .setFormat('jpg') …
Bernhardt Scherer
  • 1,818
  • 3
  • 14
  • 21
18
votes
2 answers

Convert HTML string to an image in Python

I want to convert following HTML to PNG image in Python. Bold text This HTML is, of course, an example. I have tried 'pisa' but it converts html to PDF, not to image. I can convert HTML to PDF and then convert PDF to PNG,…
mannan
  • 373
  • 2
  • 4
  • 10
15
votes
6 answers

How to do composite with gm node.js?

How to do 'gm composite -gravity center change_image_url base_image_url' with GM Node.js? How to call gm().command() & gm().in() or gm().out() to achieve the above?
Yvonne
  • 153
  • 1
  • 1
  • 3
14
votes
3 answers

What options for convert (ImageMagick or GraphicsMagick) produce the smallest (filesize) PNG?

ImageMagick creates some pretty large PNGs. GraphicsMagick is a lot better, but I'm still looking for the best options to use with convert to obtain the smallest filesize png. I have here a large png with a small filesize, and passing this through…
Jonah Braun
  • 4,155
  • 7
  • 29
  • 31
14
votes
1 answer

Tile four images together using Node.js and GraphicsMagick

I have four 256x256 px images: a.jpg, b.jpg, c.jpg and d.jpg. I would like to merge them together to produce 2x2 mosaic image. The resulting image should be also 256x256 px. Like this: +---+---+ | a | b | +---+---+ | c | d | +---+---+ Using plain…
Akseli Palén
  • 27,244
  • 10
  • 65
  • 75
13
votes
3 answers

Installing rmagick 2.13.1 with graphicsmagick on Ubuntu 10.04

I previously had an rmagick gem installation that works with ImageMagick. ImageMagick was installed from source with OpenMP disabled. This installation works without a hitch. However I attempted to uninstall rmagick and ImageMagick so that I could…
Lester Celestial
  • 1,454
  • 1
  • 16
  • 26
12
votes
9 answers

gm conversion issue in node.js

I am converting an image from jpg to png, but it is giving the error. Below is the code and error. gm('E:/image1.jpg').write('E:/image2.png', function(err){ if (err){ console.log(err); } else{console.log('image…
JN_newbie
  • 5,492
  • 14
  • 59
  • 97
1
2 3
46 47