Giter Site home page Giter Site logo

scthe / texture-extractor Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 3.98 MB

Cut parts of an image into perfect rectangles

Home Page: https://scthe.github.io/texture-extractor/

License: MIT License

JavaScript 3.28% HTML 1.23% TypeScript 93.21% GLSL 2.27%

texture-extractor's Introduction

Texture Extractor(Demo)

Texture Extractor allows you to cut fragments of an image and map them into perfect rectangles.

gh-img

Each colored area on the right will be mapped into a rectangle. The result for currently selected area (higher purple one) shown on the left. The lines that on original image are skewed are perfectly horizontal on the result image.

With Texture Extractor you can select any area of an image and it will be converted into rectangle. The selected area can have any shape. You can extract many parts of an image at the same time using multiple selections. The result images can then be downloaded.

Some of you may know Texture Ripper. While my app does not revert perspective projection, it also does not require Adobe Air. My app is also open source and works in a browser.

Privacy

If you are using adblocker, no data will be collected either way. This also applies to crashlogs.

This app works only in your browser, your images are not send anywhere. The app does not collect neither image data or even filenames. Collected analytics:

  • Basic visit data.
  • Width, height of input image. I use it to check if it's worth improving performance for bigger pictures.
  • Width, height of downloaded image and how many selected areas it is composed of. This is the main feature of the app so it is nice to know how it is used.
  • How the user selected image. Drag and drop, file picker or predefined example.
  • Which example image is the most popular. It took me ridiculous amount of time to find something interesting to showcase this app.

Building locally

  1. Clone the repo
  2. yarn install <- uses Yarn 2
  3. yarn start <- dev server
  4. go to localhost:8080

Alternatively, yarn build for production build, outputs will be in build folder.

Licence

MIT, except src/utils/decodeImage.ts.

3rd party attributions

texture-extractor's People

Contributors

scthe avatar

Stargazers

Grant Handy avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

plato4

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.