Questions tagged [node-imagemagick]

node-imagemagick is an Imagemagick module for Node.

node-imagemagick is an module for Node.

Github repository

55 questions
22
votes
5 answers

ImageMagick error

When trying to run ImageMagick via node-imagemagick on my Grunt task, i get this error from ImageMagick: Warning: Command failed: identify: unable to load module /usr/local/Cellar/imagemagick/6.8.8-9/lib/ImageMagick//modules-Q16/coders/jpeg.la': …
Dominic Mercier
  • 808
  • 2
  • 9
  • 17
10
votes
1 answer

ImageMagick sampling factor

I have been using ImageMagick command line tool for jpeg compression of the images. However, I'm trying to understand the role of sampling factor. It says the sampling factor is used to specify the block size i.e. 8x8 or 16x16. However, I can't find…
pree
  • 2,297
  • 6
  • 37
  • 55
10
votes
2 answers

looking for an imagemagick nodejs npm?

I have bene using node-imagemagick for a few days now and have come to realize that it has bugs. There are about 100 forks of it, some of which fix some of the issues i have come across, but it is hard to figure out which fork i should use.
mkoryak
  • 57,086
  • 61
  • 201
  • 257
8
votes
2 answers

ImageMagic gives ' delegate failed `'ufraw-batch' '

{ Error: Command failed: identify: delegate failed `'ufraw-batch' --silent --create-id=also --out-type=png --out-depth=16 '--output=%u.png' '%i'' @ error/delegate.c/InvokeDelegate/1919. identify: unable to open image…
Mohammad Zeeshan
  • 825
  • 1
  • 9
  • 20
8
votes
3 answers

NodeJS gm getting image size synchronously

I'm using gm and trying to process images according to it's size. Since "size" getter needs callback function, I can't use size in following lines. What I want to do is like that: function processImage(url) { var img =…
taichino
  • 1,135
  • 1
  • 15
  • 30
7
votes
1 answer

node.js How to create thumbnail from image?

I'm using gm module.This is my code: gm(picture.path).thumb('250', '180', picture.thumb_path, 100, function (error) { if(error) console.log(error); }); But result size sometimes is 249x180. I need 250x180
xfakehopex
  • 151
  • 1
  • 1
  • 8
7
votes
2 answers

imagemagick with nodejs not working

I am trying to resize an image with node-imagemagick library, but it is not working. the code i am using to resize is im.resize({ srcPath: __dirname+'originalimage.jpg', dstPath: __dirname+'resized.jpg', width: 50 },…
S. A. Malik
  • 3,465
  • 6
  • 37
  • 56
6
votes
1 answer

ImageMagick convert command Unable to Read Font

I'm integrating an ImageMagick command into a Firebase Function written in Node.js. I already have Ghostscript installed and have a full list of fonts available: convert -list font Path:…
EAA
  • 121
  • 1
  • 11
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

Rotation Mapping in ImageMagick

Is there a way to rotate an image based upon a mapping in ImageMagick? The problem is similar to displacement mapping however instead of warping & morphing the shape based upon the luma/chroma in a map I want to rotate an image based upon the…
Alex
  • 3,732
  • 5
  • 37
  • 59
4
votes
1 answer

ImageMagick with Visual Studio

I'm trying to write a sample ImageMagick program in Visual Studio 2010. I have binary distribution of ImageMagick already installed on my system as I can use command line interface of ImageMagick. However, when I try to include "Magick++.h" in my…
pree
  • 2,297
  • 6
  • 37
  • 55
3
votes
3 answers

Imagemagick - change policy.xml on Heroku

I'm trying to access images via https on Heroku with Imagemagick. How can I change the policies (in policy.xml) on Heroku? Heroku made an "ImageMagick security update" in May, 2016: https://devcenter.heroku.com/changelog-items/891 I can see the…
JohnnyTheTank
  • 668
  • 5
  • 14
2
votes
1 answer

Node-gm circular image crop using Imagemagick

I've been trying to use node-gm + Imagemagick to circular crop an image. Anyways, here's my attempt at creating a mask using a black circle. var original = 'app-server/photo.jpg'; var output = 'app-server/photo.png'; var maskPath =…
parliament
  • 21,544
  • 38
  • 148
  • 238
2
votes
1 answer

Create text mask using ImageMagick

I need to create an image from some background and text, like: I try convert -size 320x100 xc:transparent \ -font Arial -pointsize 72 -tile "bg.jpg" \ -annotate +28+68 'Some text' clear.png but this does not work.
2
votes
1 answer

ImageMagick identify reports incorrect GIF frame count

I'm using ImageMagick to do some stuff with GIF images. One of my steps is identifying the number of frames in an image. I'm calling identify via node-imagemagick (and later gm) like this: identify -format '%T,%w,%h ' test.gif Most of the time I…
Dan Abramov
  • 264,556
  • 84
  • 409
  • 511
1
2 3 4