Comments (9)
jimp is so lowe level and so straightforward to use that a feature like that, so specific, would not add much value and instead add complexity.
You layed out the algorithm, now it's a matter of implementing it π
from jimp.
Yup! I did never read throughtfully jimp docs, now I see there is a getPixelColor(x, y)
method... So yes, I'll try to implement an autocrop() method myself... Or should I directly use bitmap data, to improve performance?
from jimp.
@marcolino, I'm happy to include in an auto-crop method. If you implement it and make a pull request, I'll happily pull it in. Alternatively, if you can write a simple method using the API and post it here, I'll add it to the code base.
from jimp.
Hi!
I'm trying to git push origin autocrop-branch
, to easily create a PR, but am I supposed to know repository authentication, to push a branch?
from jimp.
- Create a fork by clicking the link in the top right here: https://github.com/oliver-moran/jimp
- Check that out, make your modifications and save your changes to the fork.
- Then go here and create a new pull request: https://github.com/oliver-moran/jimp/pulls
from jimp.
Yes... I forgot to fork, but did clone directly from your repo... :-(
Sorry, it's a long time from my last PR... :-)
Please let me now what you think about the autocrop feature...
from jimp.
Merged the pull request here: #71
Thanks!
from jimp.
Sorry, last question: I have already some minor changes to autocrop... Should I create a new PR, or what?
from jimp.
Sure thing, just create a new pull request from the fork you have.
I think you might even be able to do it in the same thread: #71
from jimp.
Related Issues (20)
- Uncaught exception with malformed PNG HOT 2
- process image HOT 1
- Converted .BMP to .JPG has repeated edges
- unrecognised content at end of stream
- Suggest adding Otsu's threshold algorithm
- No matter what, "Mime must be a string"
- Error reading arraybuffer in production environment HOT 1
- Share some examples of how to use it.(Multi page tiff from multiple images)
- @jimp/png won't work with @jimp/custom
- .brightness() method does not affect brightness
- Upgrade dependancy version of xml2js HOT 1
- Save to specific width and height in inches HOT 1
- Jimp.decoders is undefined in browser with webpack and typescript
- ERR_PNPM_NO_MATCHING_VERSIONβ No matching version found for @jimp/plugin-scale@^0.22.12
- zlib_bindings problem when used in Vite with Typescript
- Do anyone can run jimp in latest reactjs project? HOT 1
- Unable to get it working in a Vue project. HOT 3
- [BUG] Error when using ES Modules with Jimp HOT 6
- Cannot load fonts in Web Worker
- Japanese characters not able to write and render image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jimp.