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

imagemagick: running into Error: write EPIPE when passing in a buffer object

Currently writing a node-based utility based on the node imagemagick library to take in a stream and output another stream to STDOUT: im = require('imagemagick') request = require("request") sampleImage =…
fox
  • 5,569
  • 3
  • 16
  • 13
0
votes
1 answer

NodeJS graphicsmagick does not manipulate the image when using toBuffer

When I use the gm.toBuffer, the image is not manipulated at all. The only exception is that if I pass in the image type, it will change, but the image is not getting resized. It works if I spit out the file to the disk, but in this case I'd like to…
Eric
  • 409
  • 3
  • 9
0
votes
1 answer

What is a method to draw many graphic primitives using node.js and gm?

I'm just getting started with Node and have some simple results from the gm package. What I want to do now is draw many (thousands or more) shapes on an image. I can't figure out how to create multiple shapes other than gm(source) .draw('rectangle',…
Scott Ord
  • 128
  • 3
0
votes
1 answer

Change all solid parts of eps file to certain color in graphicsmagick

Very new to graphicsmagick but I can see that it is very powerful. I have a decal site and I am looking to update my images. I do this in my spare time so I don't really have budget for anything so I try and do all work I can myself. All of the…
dinki
  • 103
  • 7
0
votes
1 answer

Response not ending and browser keeps loading - nodejs and graphicsmagick

I am new to nodejs. I am using graphicsmagick to resize the image before sending it to the browser. My code looks like this (res is the response to be sent from function(req,res){...}) - imageURLPromise .then(function(response) { var body =…
Rahul Nanwani
  • 1,267
  • 1
  • 10
  • 21
0
votes
1 answer

GraphicsMagic : how to pipe filename to gm process from command line

echo file.jpg | gm convert @- -interlace Line -resize 300x300^\> - > /tmp/file_r.jpg is not working.. but if i have file filename.txt with content as file.jpg gm convert @filename.txt -interlace Line -resize 300x300^\> - >…
user2106480
  • 181
  • 1
  • 5
0
votes
0 answers

Configuring GraphicMagick 1.3.19 in Cygwin

I'm trying to use Octave instead of MATLAB in order to run the Motion tracking software found here : http://www.stats.ox.ac.uk/~wauthier/tracker/ To run octave I am using Cygwin. I've run into the issue that the GraphicsMagick configuration that…
user
  • 1
  • 2
0
votes
0 answers

Graphicsmagick "-type PaletteMatte" Does Not Keep Alpha Channel in Palettized output

Using version 1.4 downloaded from the GM snapshots on 6/17/2014 using the GM commandline in Windows. Attempts with 1.3.18 actually crashed the tool. I am running this command: gm convert "%~dpnx1" -dither -colors 254 -treedepth 2 -compose Copy…
0
votes
1 answer

how can I convert colors including alpha channel in GraphicsMagick?

I have a PNG image. I want to use GraphicsMagick to convert all pixels with RGBA=(0, 0, 0, 0) (transparent over black) to be RGBA=(255, 255, 255, 0) (transparent over white). Is it possible to do this in GraphicsMagick? my current command is: gm…
vasek1
  • 13,541
  • 11
  • 32
  • 36
0
votes
1 answer

Output multiple files with GraphicsMagick

I have the following function set up which captures uploaded images, converts them and them writes them to the server. How do I go about renaming the converted file? Currently the function takes the uploaded image and saves out one version of the…
leaksterrr
  • 3,800
  • 7
  • 34
  • 65
0
votes
2 answers

Express GraphicsMagick

I'm currently building a MEAN app and the section I'm currently working on involves image uploads. I'm trying to use GraphicsMagick for Node but I'm not really having any success. Below is my POST request for image uploads (as…
leaksterrr
  • 3,800
  • 7
  • 34
  • 65
0
votes
1 answer

Combining 2 GraphicsMagick commands into 1 command, like in ImageMagick

I was using ImageMagick to create a new resized image with watermark, with this single command (in PHP): exec("convert -filter Lanczos {$original_image} -thumbnail {$max_width}x{$max_height} -quality 90 {$watermark} -gravity center -unsharp…
Nikita 웃
  • 2,042
  • 20
  • 45
0
votes
0 answers

GraphicsMagick "gm identify" takes a long time for PDF

I am trying to convert a PDF to a JPG preview, but certain PDF files are taking a really long time to process on our RH Linux server (+- 35 seconds). The same file & command on my Windows 8 development machine takes only 3 seconds. I am using…
Barry Pitman
  • 3,087
  • 1
  • 24
  • 32
0
votes
1 answer

Linking GraphicsMagick on Mac OSX 10.8 with clang and libc++

I've been trying to include GraphicsMagick into my project for the last couple days but without luck, hopefully someone here might be able to help me (See TL/DR at the end if this is too long). As I need JPEG, PNG and lcms support, I previously…
Uflex
  • 1,396
  • 1
  • 13
  • 32
0
votes
1 answer

Can ImageMagick define a clipping path using drawing primitives?

Using SVG, you can define a clipping path and then apply it when drawing a path. Can the same effect be achieved using ImageMagick command-line options? The only way I have been able to do it is to create the clipping path as a separate file and use…
starfry
  • 9,273
  • 7
  • 66
  • 96