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
5
votes
1 answer

Extract frame of gif with graphicsmagick in node.js

I am trying to convert a gif into a png using graphicsmagick on node.js. In their documentation they have the following code: // pull out the first frame of an animated gif and save as png gm('/path/to/animated.gif[0]') …
AlexanderF
  • 254
  • 3
  • 11
5
votes
1 answer

Meteor CollectionFS - Image uploading on server

I am using Meteor CollectionFS. Currently my file uploading is performed on client. I want to perform file uploading on server so that other platforms like andriod or ios can use my services of file uploading. Currently here is my…
StormTrooper
  • 1,731
  • 4
  • 23
  • 37
5
votes
1 answer

graphicsmagick - convert images to pdf and vice versa

I want to shift from imagemagick to graphicsmagick But I encounter some issues with the syntax With imagemagick First I need to merge some images into a PDF convert -density 300 page_*.tif output.pdf And then I need to create a thumbnail of the…
clarkk
  • 27,151
  • 72
  • 200
  • 340
5
votes
1 answer

Unexpected empty writestream in collectionFS using graphicsmagick

I'm using CollectionFS for managing images. Furthermore I'm using graphicsmagick gm() for manipulating images. Now I want to crop a already saved image. Therefore on a click event a server-method is called, which does the crop(). But after doing…
user3142695
  • 15,844
  • 47
  • 176
  • 332
5
votes
2 answers

Unicode drawText "Right to Left" Language issue in GraphicsMagick for node

Im using GraphicsMagick for node and trying to drawText on image for "Urdu/Arabic Language" this text "السلام عليكم", text is being drawn on output image but it is being drawn "Left to Right" while it must be "Right to Left" as Arabic/Urdu are…
Aqib Mumtaz
  • 4,936
  • 1
  • 36
  • 33
5
votes
2 answers

Converting a JPG to WebP in AWS Lambda using GraphicsMagick/ImageMagick packages in Node.js

I am leveraging the AWS Lambda example script to resize a JPG image using Node.js and ImageMagick/GraphicsMagick libraries. I want to make a simple modification to convert the image from a JPG to a WebP format after the resize. (GraphicsMagick does…
littleK
  • 19,521
  • 30
  • 128
  • 188
5
votes
1 answer

GraphicsMagick text issues

I'm trying to either add text to an existing image using GM, or as a last resort create a new image with text that I can then composite with the original image. For some reason, I cannot seem to getting working... I'm using GM 1.3.21 Q8 on…
Jason Nethercott
  • 373
  • 3
  • 20
5
votes
3 answers

How to convert selected pdf page with gm

I am converting different images and pdf files with "gm" module for nodejs. Image types go successfully but when I want to convert PDF to image have problems. I need to covert only one selected page from pdf file to jpg/png. If I pass whole pdf file…
Serghei
  • 412
  • 6
  • 19
5
votes
3 answers

In graphicsmagick, how can I specify the output file on a bulk of files?

I want to convert a group of files, but not overwrite the existing file. How can I use mogrify to specificy the final file format? For example, firstpic.png -> firstpic-thumbnail.png, secondpic.png -> secondpic-thumbnail.png, etc. gm mogrify -size…
Matt Kim
  • 759
  • 7
  • 19
5
votes
2 answers

Resize without whitespace surrounding on images using graphicsmagick or imagemagick

I'm using graphicsmagick to resize an image to a thumbnail, but it's adding a white surrounding border padding. The command I'm using is: gm convert matrix.jpg -resize "80x80>" -gravity center -extent 80x80 thumbnail.jpeg As you can see, there is…
bob_cobb
  • 2,229
  • 11
  • 49
  • 109
5
votes
1 answer

How to keep transparency with "-compose" and "-flatten" on GraphicsMagick

I have a series of PNG images with transparent backgrounds that I want to overlay onto a destination PNG image that also has a transparent background. For argument sake let's say that the series of images are : Source images : img1.png, img2.png,…
Hoho-0714
  • 81
  • 4
5
votes
1 answer

How to bundle GraphicsMagick with application?

I would like to bundle a standalone version of the GraphicsMagick gm binary with an application, so that I don't have to build and install the GraphicsMagick library on the server where the application is supposed to run. Details I'm creating a…
Thomas Watson
  • 6,507
  • 5
  • 33
  • 43
5
votes
0 answers

Resizing GIF loses animation

I'm using GraphicsMagick (1.3.16) and im4java (1.4.0) to create thumbnails of GIFs. At the command line I can do something like: convert original.gif -coalesce -resize 100x100 +profile * thumb.gif and the thumbnail is created successfully,…
Ariana A.
  • 61
  • 2
5
votes
1 answer

Stream file uploaded with Express.js through gm to eliminate double write

I'm using Express.js and have a route to upload images that I then need to resize. Currently I just let Express write the file to disk (which I think uses node-formidable under the covers) and then resize using gm (http://aheckmann.github.com/gm/)…
Bill
  • 25,119
  • 8
  • 94
  • 125
4
votes
1 answer

GraphicsMagick perspective distortion

Is there a way to do a perspective distortion like this http://www.imagemagick.org/Usage/distorts/#perspective in GraphicsMagick? Of course, I can always switch back to ImageMagick, but I'd rather not. I'm planning to use it in PHP, but command line…
a sad dude
  • 2,775
  • 17
  • 20