Giter Club home page Giter Club logo

Comments (9)

gcq avatar gcq commented on June 21, 2024

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.

marcolino avatar marcolino commented on June 21, 2024

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.

oliver-moran avatar oliver-moran commented on June 21, 2024

@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.

marcolino avatar marcolino commented on June 21, 2024

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.

oliver-moran avatar oliver-moran commented on June 21, 2024
  1. Create a fork by clicking the link in the top right here: https://github.com/oliver-moran/jimp
  2. Check that out, make your modifications and save your changes to the fork.
  3. Then go here and create a new pull request: https://github.com/oliver-moran/jimp/pulls

from jimp.

marcolino avatar marcolino commented on June 21, 2024

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.

oliver-moran avatar oliver-moran commented on June 21, 2024

Merged the pull request here: #71

Thanks!

from jimp.

marcolino avatar marcolino commented on June 21, 2024

Sorry, last question: I have already some minor changes to autocrop... Should I create a new PR, or what?

from jimp.

oliver-moran avatar oliver-moran commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.