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

node.js jimp parseBitmap (Error: Could not find MIME for Buffer )

Within my node application I am using Jimp and my code is working but when repeating it multiple times, randomly an error is thrown and I cannot understand why: The code is just looping. It's working, i just get the error message sometimes without…
0
votes
1 answer

How to make javascript async function for getting each RGB color hexcode value, and then using Jimp npm package to create that color png file?

I am trying to get ALL 16,777,216 RGB colors, and create each one onto a 64px * 64px png file. I actually do need them all at once to make a package. That means I would have 16,777,216 png files total after I complete this task. I have tried to…
leguchi
  • 105
  • 2
0
votes
1 answer

image cannot able to read using jimp from s3 bucket & lambda

I'm using jimp plugin to read file & trying to optimize images. I can able to read file & optimize using public image url's. The issue is while reading image from s3 bucket. I can able to fetch image from s3 bucket, while passing the image to…
Varma
  • 75
  • 1
  • 12
0
votes
1 answer

How to mask an image with another b/w image in NodeJS?

So I want to mask this image with this image which will result in this image How to do this in NodeJS?
Duck Dev
  • 23
  • 4
0
votes
0 answers

JIMP Image being cut short

I am using Node.js, Express, NodeMailer, and JIMP to try to email an image after a POST. Sending an email with a completed image works when requests are spaced out but when I send multiple, sometimes old images are sent instead or partial images. I…
Loom
  • 21
  • 2
0
votes
1 answer

How to use Jimp composite in Javascript to layer images

I'm trying to create in image generator where I can create all permutations of an image given different elements on 3 layers. I have managed to get the three folders into arrays and am trying to use Jimp to layer them on top of each other to create…
0
votes
0 answers

Is there a way to modify the buffer of a png in a pdf document?

For a few days now i have been trying to extract images from a pdf, modify them, and then replace them in my pdf document. It works perfectly when working with jpeg images, but when it comes to png... I'm able to modify the image and then save it…
0
votes
1 answer

Use Jimp to convert a .jpg image to png in Node.js (AWS Lamda)

I'm writing an AWS Node.js Lambda function (using Serverless) to convert images across different formats (i.e. JPG--> PNG) given an initial URL. I'm using the Jimp library which, according to the documentation, implements this functionality with the…
Claus
  • 5,662
  • 10
  • 77
  • 118
0
votes
1 answer

How to change the font color of text print in Jimp

JIMP uses bitmap fonts... which don't seem to have an option to setting their color. I'd like to change the color of the font to any arbitrary color, then overlay this watermarking text over a base background image. I can load the image and put text…
lowcrawler
  • 6,777
  • 9
  • 37
  • 79
0
votes
0 answers

Dashed border seems like its multiplying

I'm makking a Node.js app with Jimp. I have a function for selecting part of an image. It draws a rectangle in the area, writes the number of the selection in the middle and then draws a dashed border around the outside of the rectangle selection.…
ProGamer2711
  • 451
  • 1
  • 5
  • 18
0
votes
0 answers

How can I make a dashed border in Jimp?

I'm making a Node.js app with Jimp for image processing. I want to make a dashed border on rectangles based on parameters for the rectangles themselves (x, y, width and height). I want the border to be as close to a web browser dashed border as…
ProGamer2711
  • 451
  • 1
  • 5
  • 18
0
votes
1 answer

How to convert Base64 string to PNG (currently using Jimp)?

I'm currently creating a real-time chat application. This is a web application that uses node.js for the backend and uses socket.io to connect back and forth. Currently, I'm working on creating user profiles with profile pictures. These profile…
IPSDSILVA
  • 1,667
  • 9
  • 27
0
votes
1 answer

Error on provided shape, expected (1200000) and actual (400000) tensor values are different

Is there any way to have the input image values match the expected values? The input image I know for a fact is 800px in width, 500px in height, and is colored (meaning 3 channels), so the shape should be [800,500,3]. However, I receive the error…
Nic Cheng
  • 47
  • 5
0
votes
1 answer

How would I get an unaltered RobotJS screenshot and save it to a file?

I have a program that takes a robotjs screen capture and saves it to a file, like a 1 fps live stream. const Jimp=require("jimp"); const robot=require("robotjs"); const fs=require("fs"); setInterval(function(){ var img=robot.screen.capture(); …
Lakshya Raj
  • 1,669
  • 3
  • 10
  • 34
0
votes
1 answer

discord.js argument separator issue

I have been trying to get my args to work and they do but I am not sure how to make a separator for it so I don't have to use the command twice. Here's my code. const discord = require('discord.js'); const Jimp = require('jimp'); const fs =…