Coder Social home page Coder Social logo

shalluv / manually-crop-bulk-images Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 165 KB

Built in order to help cropping bulk images. Feel free to use (at your own risk ofc).

License: ISC License

JavaScript 6.15% TypeScript 75.89% Astro 16.62% CSS 1.34%
astrojs tailwindcss

manually-crop-bulk-images's Introduction

Manually Crop Bulk Images

⚠️Warning: This program is built for personal use. It is not tested for general use. Use at your own risk.

Prerequisites

  • Node.js (>= 18.0.0)
  • pnpm (>= 8.0.0)

Get Started

  1. Clone this repository.

    git clone https://github.com/shalluv/manually-crop-bulk-images.git

    or download the zip file.

  2. Install dependencies.

    pnpm install
  3. Put your images in the /src/assets/ folder.

  4. Run the rename script to rename all images in the /src/assets/ folder to a 3-digit number with the original file extension. This step is necessary for the program to work.

    ⚠️Warning: The rename script can cause problems if you don’t know what you’re doing. Please read the script before running it.

    pnpm rename
  5. Run the script by executing the following command:

    pnpm build
    pnpm preview
  6. Open http://localhost:4321 in your browser.

  7. You should be good to go!

How to Use

  1. Click on the image you want to crop.
  2. Select 4 points on the image to create a rectangle.
  3. Adjust the rectangle by dragging the points.
  4. Click the "Confirm" button to crop the image.
  5. Repeat these steps for all images.
  • Since the program is using the localStorage API, you can close the browser and continue later.
  • When you want to start over, click the "Reset" button.

Limitations

  • The program only supports cropping images to a rectangle.
  • The program only test with images in the .jpg format.
  • The program only capable of 999 images.
    • You can adjust the limit by yourself

Contributing

Suggestions, issues, and pull requests are welcome! Feel free to do it! 😘

manually-crop-bulk-images's People

Contributors

shalluv avatar

Stargazers

Idhibhat Pankam avatar

Watchers

 avatar

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.