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

Please provide the prefix of GraphicsMagick installation [autodetect]

I'm trying to install the PHP API for GraphicsMagick using this pecl command: sudo pecl install channel://pecl.php.net/gmagick-1.0.10b1 during installation I am asked this question: Please provide the prefix of GraphicsMagick installation…
TKpop
  • 309
  • 1
  • 4
  • 8
10
votes
2 answers

Conditionally chain functions in JavaScript

I'm trying to refactor the following node.js code. Each case generates a thumbnail, chaining a different set of GraphicMagic transformation to an image. switch(style.name) { case 'original': gm(response.Body) …
Sbbs
  • 1,610
  • 3
  • 22
  • 34
10
votes
5 answers

Meteor Up Docker and Graphicsmagick

I'm looking for how to install Graphicsmagick at Meteor Up Docker. I found this solution (Access binaries inside docker) but I couldn't make work, where do I put those lines at start.sh? meteorDockerId=docker ps | grep meteorhacks/meteord:base | awk…
Guima Ferreira
  • 195
  • 1
  • 11
9
votes
3 answers

To render the Progressive Image in Progressive manner

I have converted the uploaded image into progressive in backend using Node GM and stored in the file. After that, I want to show that converted progressive images in front-end. My problem is when I rendered that image its getting rendered line by…
Bandana Sahu
  • 284
  • 2
  • 10
9
votes
4 answers

Lightweight command-line image resizer?

I'm looking for an image resizer / thumbnailer that is lightweight and efficient. Something that does a good job with all image types, but most importantly jpeg and png. I've looked into ImageMagick and GraphicsMagick, but they are too heavy. This…
grourk
  • 661
  • 8
  • 12
9
votes
1 answer

compress output tiff with g4 compression

How to write a file as tiff with g4 compression?? imwrite(string("compressed.tif"), res); update image processing This is the processing of the image data before the data is sent to write_fax() so further processing should not be necessary (have…
clarkk
  • 27,151
  • 72
  • 200
  • 340
9
votes
1 answer

GraphicsMagick processes resulting in empty file

I'm doing this gm(jpgName).setFormat('jpg') .resize(160,158) .compress('JPEG') .write(fs.createWriteStream(jpgName),function(err){ if(err){ console.log(err,jpgName); res.send(400); }else{ console.log('file…
user773737
9
votes
2 answers

Skipper in SailsJS (beta) image resize before upload

I'm using SailsJS (beta). I'm trying to find a way to use graphicsmagick to take the stream parsed by Skipper in SailsJS-beta to resize the image before calling the Skipper-function req.file('inputName').upload(). My goal is to take my large,…
hansmei
  • 660
  • 7
  • 17
9
votes
3 answers

Cloud/RESTful interface for Image/GraphicsMagick

I'm looking for a cloud service to where I can upload images and get them cropped / resized. Basically I'm looking for zencoder, but for images instead of video. I know about cloudinary but it forces you to store the images on their system so that…
Harry
  • 52,711
  • 71
  • 177
  • 261
9
votes
1 answer

Pipe stream to graphicsmagick/imagemagick child process

I am trying to pipe data from a stream into a child process. var gm = spawn( 'gm convert - -thumbnail 220x165^ -gravity center -extent 220x165 thumb.jpg' ); var rs = fs.createReadStream( 'cow.jpg' ); rs.pipe( gm.stdin ) Do I need to call end on gm…
Pickels
  • 33,902
  • 26
  • 118
  • 178
8
votes
4 answers

Gmagick extension for php install -- how and where?

Downloaded php-pear and tried installing gmagick extension by following the steps given in link "http://www.gerd-riesselmann.net/development/how-install-imagick-and-gmagick-ubuntu" The pecl gave an error -- gmagick-1.0.9b1$ pecl install…
8
votes
1 answer

Do I have access to GraphicsMagicks or ImageMagicks in a Google Cloud Function?

I want to make a Google Cloud Function that will correctly set the content type of uploaded files. I know how to do this with GraphicsMagick or ImageMagick, but I'm not sure if Google Cloud Function has those native libraries. How do I find out if…
8
votes
5 answers

How to convert an image file from SVG to a multi-size ICO without blur (sharp)

I've been using ImageMagick, but it produces a very blurry result. convert -density 300 ../images/favicons/procensus.svg -background transparent -colors 256 -define icon:auto-resize favicon2.ico It seems to be rendering the image at 300 density,…
Thomas Grainger
  • 2,271
  • 27
  • 34
8
votes
3 answers

Most Efficient Way to Create Thumbnails?

I have a huge volume of thumbnailing to do. Currently, I am using ImageMagick, but it's proving too inefficient (it's too slow, uses too much CPU/memory, etc.). I have started to evaluate GraphicsMagick, which I expected to get "wow" results from. I…
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
8
votes
1 answer

How to import node module passing subClass argument in ES6?

In JS I require in the node module gm (which I want to use with imageMagick rather than the default graphicsMagick) while passing an argument like this: var gm = require('gm').subClass({ imageMagick: true }); How can I do that in ES6? import gm…
r0bs
  • 297
  • 2
  • 9
1
2
3
46 47