Why do people use jimp? #1171
Replies: 7 comments
-
My main use case is a product that I'm rendering which includes a bunch of image manipulations. I want this to be done on the frontend (for the end user in a kind of editor app) as well as the backend (for outputting preview image files, instruction manuals for the custom product, etc). So in short, it appeals to me because I can write code that runs in both the browser and on the server. |
Beta Was this translation helpful? Give feedback.
-
I personally started using Jimp because it was a popular library (1) I can see why 2 is useful Maybe next version should just be a canvas wrapper |
Beta Was this translation helpful? Give feedback.
-
I am using Jimp in a React app that allows users to upload a profile picture. Jimp crops the image to a square of a certain pixel size while retaining aspect ratio using I can do this in just a few lines of code with Jimp, and unlike other libraries it works in the browser, not just in Node, so I went with it. I didn’t know about the Canvas API, but after a first look it sounds to be more focused on drawing rather than for transforming and encoding existing images. |
Beta Was this translation helpful? Give feedback.
-
We are using Jimp in Node.js and Electron (main process/Node.js) environment. It mostly to process app icons images (adding frames, removing transparency, etc) and convert images to different formats. We could use libraries like https://sharp.pixelplumbing.com/ but since we need to distribute our Electron apps across multiple platforms and architectures, compiling and distributing |
Beta Was this translation helpful? Give feedback.
-
I'm not using jimp at the moment but I want to. Canvas has two big weaknesses for me. The first: canvas can only be 8 bit. That may be good enough for the RGB color space, but images are also excellent, very efficient databases for other purposes and a channel resolution of 8 bits is simply not enough. |
Beta Was this translation helpful? Give feedback.
-
I'm using Jimp in Node.js and Electron. the application has label printing functionality, so I wrote a NPM package that does just that; printing to a Dymo label printer. To create the label, it starts as an image that's created by Jimp. For who is interested, this is my Dymo label printer project that has Jimp as a dependency. https://github.com/kozmoz/node-dymo-printer |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm interested in why people use jimp and don't reach for other tools.
For the server it makes sense, including native deps can be challenging or not possible and jimp being all javascript means it can run anywhere javascript can.
For the browser what jimp is makes less sense for me. I understand it's a all in one image manipulation package so it can be a sort of utility knife, but the browser itself has pretty powerful tools for exactly what jimp does:
So maybe it's just because it works good enough without worrying about that last point
@quanglam2807
@marvinruder
@danielholmes
@nopeless
Beta Was this translation helpful? Give feedback.
All reactions