I am having a problem manipulating the image with imagemagick then upload it to S3. The resulting object has a different (bigger) size and seems to be corrupt. If I make an intermediate step and save the output to local tmp file first and read it…
I am using GraphicsMagick for node. I basically crop the photos and retrieve the exif data of the photos uploaded by the user. I don't want to block the flow of request waiting for these task to be completed, therefore I need to use asynchronous…
I'm using node-imagemagick for the first time.
Disclaimer: I've never used imagemagick, and am not much of a javascript guy. Most experience is in C/C++, Objective-C.
I'm writing a snippet for a server side process that needs to take an input…
I want to convert my png with white background to transparent background png.
Here is my code.
im.convert(
[source, '-flatten', '-transparent', path_to],
function (err, stdout) {
if (err) {
reject(err);
…
I crop an image file by node module imagemagick. It crops successfully, but how to get the names (or paths) of cropped result images
My code:
const im = require('imagemagick');
....
const imgFile = "img.png";
im.convert([imgFile, '-crop', '300x300',…
I am trying to get sketch effect and i have the imagemagick command line code as follows
convert 1.jpg -colorspace gray ( +clone -blur 0x8 \) +swap -compose divide -composite -linear-stretch 2%x20% cousincs.jpg
I am using gm module and I tried…
I'm using ImageMagick ver 6.9.3-7 to write text over pictures. I've noticed that the same text with the same font looks much better in html canvas and I'm trying to make it looks the same.
This is how it looks in the html5 canvas:
and this is how…
I'm trying to use imagemagick to convert svgs to pngs, rescale them and put them in a response stream.
I'm using https://www.npmjs.com/package/imagemagick like this:
var imageUri = __dirname + '/images/' + project + '/' + image +…
Using imagemagick with nodejs, I would like to rename my output with x-y by column and rows.
i can do on terminal but how can i implement this on my script as well.
Terminal example :
convert img.jpg -crop 512x512 -set filename:tile…
With this script i can tile my (4096x2048) images into 32 tiles(512x512).
I would like to give a "X, Y, Z" cordinate to each exported image.
For now i would like to keep Z as 0 always.
Example:
output-1-0-0.jpg
output-1-1-0.jpg
var http =…
I've an issue with a script named pixenate which works as a simple image editor using javascript, imagemagick and perl. After deep troubleshooting I found that the issue happens when I use a big stroke width (14+) when I draw something on an image…
I'd like to make mosaic images using gm() and NodeJS but it seems not working with my code, I think that the problem is due to the original size of the image (600 * 200), my template is smaller than the images...
My result should be something like…
I am using the imagemagick module with Nodejs
im = require('imagemagick');
The imagemagick module uses the imagemagick command line tools.
I use the convert method to crop an image
im.convert([image_path, '-crop', '200x150', '-gravity', 'center',…