Giter Site home page Giter Site logo

trekhleb / js-image-carver Goto Github PK

View Code? Open in Web Editor NEW
1.5K 1.5K 136.0 13.48 MB

๐ŸŒ… Content-aware image resizer and object remover based on Seam Carving algorithm

Home Page: https://trekhleb.dev/js-image-carver/

License: MIT License

HTML 3.16% CSS 0.82% TypeScript 93.94% JavaScript 2.07%
algorithm algorithms image-manipulation image-processing javascript resize-images seam-carving

js-image-carver's Introduction

Hi there!

I'm Oleksii. I work as a full-time software engineer at Uber. In my spare time, I do open-sourcing.

Most of my open-source ๐Ÿš€ projects below ๐Ÿ‘‡๐Ÿป are focused on one thing - to help people learn ๐Ÿ“š. You may use these projects to learn about algorithms in JavaScript and get prepared for technical interviews, or to learn Python syntax and start experimenting with machine learning algorithms and the math behind them, etc.

There are also other projects that I've developed for fun but that you might find useful, like โœ๐Ÿป okso.app online drawing app.

I also write ๐Ÿ“ articles about life, web development and machine learning.

Getting in touch

trekhleb.dev

Follow me on Twitter ย  Follow me on LinkedIn ย  Follow me on Medium

js-image-carver's People

Contributors

trekhleb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js-image-carver's Issues

[Feature request] Mask to keep

Congrats on the library, love the demo and the article about it ๐Ÿš€

One small suggestion: it would be helpful/nice to have a Mask to keep functionality. Say to explicitly mark an area that I don't want resized.

output should keep aspect ratio

When both dimensions are set to the same percentage, the output image should retain the aspect ratio.

Example:
Choose 500x500px image. Put width and height to 80% and run the carving algorithm.

Expected result:
Output image is 400x400px

Actual result:
Output image is 400x401px

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.