Questions tagged [jimp]

Jimp (JavaScript Image Manipulation Program) is an image processing library for Node written entirely in JavaScript, with zero native dependencies.

Jimp (JavaScript Image Manipulation Program) is an image processing library for Node written entirely in JavaScript, with zero native dependencies.

104 questions
0
votes
2 answers

nodejs choosing between JIMP and MOZJPEG

I was wondering if there is a blaring reason to use jimp vs. imagemin-mozjpeg for compressing jpegs (I am already using both imagemin and jimp in my project already, imagemin-webp to serve next gen images, and jimp to convert pngs to jpegs in rare…
Daniel
  • 1,392
  • 1
  • 5
  • 16
0
votes
1 answer

Unsupported mime type error while gif resize

I am using JIMP image library with Node js for image processing. While trying to resize error I am getting Unsupported Mime type error. In the library repo it is mentioned that gif is supported. I am using JIMP package version 0.6.4 Do I miss…
0
votes
1 answer

mongodb stitch function is having error in using node modeule @jimp

I am using mongodb stitch function on database trigger to read image from URL using node js jimp module https://www.npmjs.com/package/jimp I have uploaded jimp as external dependency to stitch function. Below is code i am using in function const…
Sam
  • 23
  • 4
0
votes
1 answer

How to send reduced/optimised images from node server to Angular client (but save original quality to database)

I'm working on a project which requires an image database. Many of the images are rather larger than they need to be for 90% of the use cases of the application, however, there are cases where I need the original quality image.Therefore, I cannot…
pj1301
  • 43
  • 1
  • 6
0
votes
1 answer

How do I pass an uploaded Image to Jimp using Hapi 19?

We're upgrading our Front-end and have reached a rather old piece of code which allows us to upload an image file to the back-end to be used as an avatar. After some wrangling we have managed to persuade the Vue.js front-end to pass an image to the…
Dan Kelly
  • 2,634
  • 5
  • 41
  • 61
0
votes
1 answer

Overlay one image over another

I'm trying to overlay 1 image over the top of another but cant seem to work it out - my code throws no errors but doesn't output the requested image modification. Can someone point me in the right direction? Here is my code const user =…
Joe Moore
  • 2,031
  • 2
  • 8
  • 29
0
votes
0 answers

Javascript async await not waiting as expected

I'm working with Express js & i'm trying to download and resize pictures using "jimp" package then store theme inside an array( res) in order to store new paths later in the data base. my problem is async / await doesn't work as expected : the log…
0
votes
2 answers

How to print different text on more than one image using jimp in node js?

I want to create a gift card to send many email with different text, I am using the below logic its work to print but overwrite with previous one image gengerated. Jimp.read(fileName) .then(function (image) { …
Umashankar Saw
  • 1,131
  • 1
  • 9
  • 25
0
votes
1 answer

Jimp loadFont and getBase64

i work in angular with jimp. I am trying to create text on an existing image. But the picture does not change. let Jimp = require('jimp') var _this = this; Jimp.read("assets/TimeLine.png").then(function (image) { …
0
votes
1 answer

Jimp not reading from url in lambda trigger at aws

Log from aws cloudwatch 20:42:36 START RequestId: 3b39ddb6-f2f5-4e11-a3d6-59f47f16240b Version: $LATEST 20:42:39 END RequestId: 3b39ddb6-f2f5-4e11-a3d6-59f47f16240b 20:42:39 REPORT RequestId: 3b39ddb6-f2f5-4e11-a3d6-59f47f16240b Duration: 3003.18 ms…
Ankit Singh
  • 325
  • 3
  • 12
0
votes
0 answers

how to send request from the result object in Jimp library in nodejs

first of all my code works fine but I'm trying to improve it, simply I'm trying to request an image file from host then resize it with Jimp and finally upload it to my Cloudinary account. but before sending it to Cloudinary I'm actually keeping a…
OT AMD
  • 183
  • 5
  • 19
-1
votes
1 answer

Generate an image similar to image name

I have a requirement where I want to generate an image that is similar to my item name. For eg. if my item name is Butter Chicken then I want an image to be generated of butter chicken. My requirement is only food specific. I looked into DeepAI…
-1
votes
1 answer

JavaScript - Get RGBA values from bitmap buffer

Hello I'm using NodeJs and a package named "Jimp". I'm trying to get the Red, Green, Blue, and Alpha values for each pixel but am having trouble. Here's my code: Jimp.read("https://i.imgur.com/eOu89DY.png").then((image) =>…
Ownslo
  • 3
  • 6
-2
votes
1 answer

discord.js putting an image on another image

I've been trying to make a command that when you send an image or a url of an image it puts that image on another image that I already have in the code and I keep getting errors every time I try changing it to either imageTemp (which is the image…
1 2 3 4 5 6
7