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
3 answers

Merge multiple png images with transparency in node.js

I use this code to merge multiple images to one, but the transparency is gone in the result file. The background is solid black. gm.in('convert').in('-size', '200x100') .in('xc:transparent') .in('-page', '+0+0').in('image1.png') .in('-page',…
Remigius Kijok
  • 215
  • 2
  • 8
0
votes
1 answer

Relationship between blur percentage and its sigma and radius

Right now I'm working on an image processing flow backed with GraphicsMagick (ImageMagick independent fork) and I want to add optional blur into it. But people who'll work with it not familiar with Gaussian blur and its radius and sigma parameters.…
Leonid Beschastny
  • 50,364
  • 10
  • 118
  • 122
0
votes
2 answers

Check how many pages are included in a multi-page image file with GraphicsMagick

Is there a way to determine in advance how many pages are included in a multi page tif image with GraphicsMagick ? I know I can select the first page in this way : image.tif[0], and probably iterating the array until the command fail will return the…
Cris69
  • 520
  • 1
  • 14
  • 40
0
votes
0 answers

GraphicsMagick - merge images

I want to create 120x240 transparent image and put some images on it with positioning. I found this: gm convert -background black \ -page +0+0 a.jpg \ -page +256+0 b.jpg \ -page +0+256 c.jpg \ -page +256+256 d.jpg \ …
MartinP
  • 172
  • 1
  • 8
0
votes
1 answer

GraphicsMagick montage 2x1 with an odd number

I'm using this command to merge PDFs 2x1 gm montage -mode concatenate -rotate 90 -tile 2x1 ${labels.join(" ")} ${out} The problem, is if there are 5 PDFs, then the 1 is in the center. Is there anyway to get this where the last one, or an uneven one…
Sean Clark
  • 1,436
  • 1
  • 17
  • 31
0
votes
1 answer

GraphicsMagick crashes my program on startup

I just spend a few hours converting my program to use GraphicsMagick because it has some features that I'd like to use. That seems to have been a mistake. When I run my program it now crashes on: Image::read with this error: libc++abi.dylib:…
John
  • 548
  • 7
  • 15
0
votes
1 answer

GraphicsMagick for node not masking

I'm using GraphicsMagick for node to take a source image, resize, crop and then apply a mask: gm(tempfile) .quality(90) .resize(null, 38) .gravity('Center') .crop(20, 34) …
Pirijan
  • 3,430
  • 3
  • 19
  • 29
0
votes
1 answer

nodejs gm error when writing image

I'm trying to run the example from the node.js gm project to create an image (new.js). I have Windows 7 and GraphicsMagick-1.3.18-Q8 installed. code: var fs = require('fs'), gm = require('gm'), dir = __dirname + '/imgs'; gm(525, 110, "#00ff55aa") …
rob
  • 13
  • 5
0
votes
1 answer

GraphicsMagick how do you use it to get the image in to the desktop as wall paper?

using the example from GraphicsMagick web-sight gm display 300x350+150+200! ~/imagetesting/image1.jpg I get this gm display: Unable to open file (300x350+150+200!) [No such file or directory]. then there window pops open with the image in it…
uxserx-bw
  • 241
  • 1
  • 2
  • 10
0
votes
1 answer

Using graphicsmagick, what is a good way to find the coordinates of a small image inside a bigger image?

Question: Using graphicsmagick, what is a good way to find the coordinates of a small image inside a bigger image? Explnation: To explain further, I have a large screen shot that I am working with and would like to find the pixel coordinates of a…
Chris Dutrow
  • 48,402
  • 65
  • 188
  • 258
0
votes
1 answer

Unable to link to GraphicsMagik

I'm trying to build a little utility program that relies upon GraphicsMagick C++ library but I got the following error when linking to the library: make all-recursive make[1]: Entering directory `/home/ale/sample' Making all in src make[2]:…
alessmar
  • 4,689
  • 7
  • 43
  • 52
0
votes
1 answer

Openmp not improve graphicsmagics performance

I am using graphicsmagics to scale image,and I found openMP not improve the processing performance. following is my test result: C:\Users\L.J.W>set OMP_NUM_THREADS=1 C:\Users\L.J.W>gm benchmark -stepthreads 1 -duration 10 convert d:/opt/1.jpg …
L.J.W
  • 1,575
  • 5
  • 18
  • 24
0
votes
3 answers

Using GraphicsMagick C API, Unknown Type Image Compile Error

I'm trying to use GraphicsMagick and got odd build errors, so I added #include to #include int main(int argc, char *argv[]){ printf("hello magick"); return 0; } just to see WTF was going on. Obviously…
justinzane
  • 1,897
  • 1
  • 26
  • 38
0
votes
1 answer

How do I use the batch ultility of Graphics Magick?

I'm sure that my mistake is plain simple. I'm fair new to this application and after seeing the online help for batch I copy and paste the code for jpg conversion (to tiff) and it didn't work. The error it gives is: "gm: unrecognized command 'for'.…
0
votes
1 answer

Compiling GraphicsMagick jni library on linux

I am creating a jni library that uses GraphicsMagick for some of it's functionality. I have the following files in a directory phash.h phash.cc thumbnail.h thumbnail.cc image_jni.h // This is generated by the javah tool image_jni.cc To compile a…
Rajiv
  • 2,587
  • 2
  • 22
  • 33