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

Rmagick, GraphicsMagick seems to be super slow on server (why OK on local)

I am looking for a very quick way to render dynamic images from small tiles placed on some background (imagine dynamically rendering a chess game and sending images after each player makes a move). So the procedure seems to be quite simple: 1. Take…
HouseMD
  • 243
  • 2
  • 11
6
votes
2 answers

Specifying geometry for a composite with mini_magick

I am basically trying to write this command with mini_magick. gm composite -compose Copy -geometry +0+210 note-transparent1.png note-rugby.png note-rugby-e.png This is my code: image = MiniMagick::Image.open("note-transparent1.png") result =…
rmw
  • 1,253
  • 1
  • 12
  • 20
6
votes
2 answers

Creating multiple thumbnails in ImageMagick / GraphicsMagick

I'm currently writing a shellscript for Bash, that will create different size thumbnails for some rather massive amounts of large images. I was wondering if it's possible to get GM/IM to create multiple sizes of thumbs in one run, to avoid loading…
6
votes
1 answer

NodeJs Failure: Expected params.Body to be a string, Buffer, Stream, Blob, or typed array object

I am using GraphicsMagic to modify image. After drawing text on image I need to upload result image to s3 bucket. However I suspect toBuffer() is returning empty result because I am getting following error: Failure: Expected params.Body to be a…
misha
  • 191
  • 1
  • 4
  • 15
6
votes
1 answer

Floyd Steinberg dithering in GraphicsMagic or ImageMagic

I'm having trouble converting images to 1bit dithered images using GraphicsMagic. The converted images are to be used as input for a thermal printer. I'm using the following command: gm convert input.jpg -resize 384 -monochrome -dither out.bmp The…
Woozer
  • 73
  • 1
  • 6
6
votes
2 answers

gm: resize image if it is wider than 1000px

I am trying to do some image manipulation via gm in collectionFS, because I need to read a stream and write it back to the same file, I have to use a temp-file - like shown below. I want to check if the image is wider than 1000px. In this case it…
user3142695
  • 15,844
  • 47
  • 176
  • 332
6
votes
2 answers

Git Fatal Error when using Graphics Magick convert command

When I try to use a Graphics Magick command, (something simple, just to test the program) I cannot do anything, as it always replies back with a git error. gm convert fatal: Not a git repository (or any of the parent directories): .git I did not…
Enzo
  • 143
  • 11
6
votes
2 answers

Generate Smooth White Border Around Circular Image

I'm using pgmagick to generate a circular thumbnail. I'm using a process similar to the one discussed here, which does indeed produce a nice circular thumbnail for me. However, I need a white border around the radius of the circle. My initial…
user1427661
  • 11,158
  • 28
  • 90
  • 132
6
votes
1 answer

-liquid-rescale in GraphicsMagick or other SeamCarving command-line tools

I'm using GraphicsMagic (and have several bindings that require GM). Now I have to rescale images by Seam Carving algorithm that is available in ImageMagic via -liquid-rescale option but is missing in GM (isn't it?). Is there any options to install…
Artazor
  • 71
  • 2
6
votes
3 answers

Java and GraphicsMagick -- Will it work?

I am considering using GraphicsMagick (http://www.graphicsmagick.org/) in a Java project. Does anyone have any experience with this? Suggestions on how to get started? It seems like there isn't a native Java library so it may be a little more…
Joshua
  • 3,615
  • 1
  • 26
  • 32
6
votes
1 answer

How to install GraphicsMagick with PNG support on Amazon EC2?

If you naively follow the steps on the GraphicsMagick website, after running ./configure, you end up with no PNG support: checking for PNG support ... checking png.h usability... no checking png.h presence... no PNG --with-png=yes …
Domenic
  • 110,262
  • 41
  • 219
  • 271
5
votes
1 answer

create image on nodejs with graphicsmagick

I need a way to create an image on graphicsMagick via node.js Normally I can manage this with; gm convert -background transparent -pointsize 30 -gravity Center label:türkçee HEEEEEY.png I need the equivalent of this input in node.js like; var gm =…
Lupus
  • 1,519
  • 3
  • 21
  • 38
5
votes
1 answer

Creating a GIF from remote stream in graphicsmagick

I am creating a GIF from remote files in node currently by downloading each image to the file system into a tmp folder. I want to bypass saving the image to a tmp folder and save in memory instead. Is this possible? As you can see, I have a download…
Stretch0
  • 8,362
  • 13
  • 71
  • 133
5
votes
1 answer

Adding if condition to Graphic Magic Command

I have the following command: gm('input.jpg') .crop(500, 500, 10, 10) .write('output.jpg', function (err) { if (err) { console.log(err) } else { console.log('Success') } }) I'd like to add a condition to it without having to…
Jason Small
  • 1,064
  • 1
  • 13
  • 29
5
votes
0 answers

nodejs GraphicsMagick (gm) passing stream to .composite()

Using Expressjs with gm (GraphicsMagick) module. I would like to use a stream as the input to .composite(). Is this possible, or is there any way of doing this? I can composite using a path or a variable containing a path to an image, but I would…
M3NTA7
  • 1,307
  • 1
  • 13
  • 25