Simple and accurate avatar cropping tool that runs in your browser. Made with extremely paranoid people in mind. You'll never miss a single pixel ever again!
Use it here: https://leadrdrk.com/avatarcropper
- Works great on both mobile and desktop.
- Progressive Web App support.
- GIF support: Crop a specific GIF frame or save cropped image as animated GIF.
- Image rotation/flipping and filters.
- Preview your avatar as if it was being used on a real website.
This project uses Parcel as its build tool.
Simply run npm run start
to start the development server. If this is your first time, run npm install
first to install the dependencies.
Use npm run build
to build the project.
You can use Docker to build and spawn the application.
Clone this repo and run the following commands:
# build the image
docker build -t avatarcropper -f Dockerfile .
# run the container
docker run --rm -p 1234:1234 avatarcropper:latest
Alternatively, use Docker Compose:
# build and run the container via docker-compose.yml
docker compose up
The application will be accessible at http://127.0.0.1:1234.
The following languages are available for the project:
- English (natively supported)
- Vietnamese (natively supported)
Don't see your language on the list? You can help by adding it yourself!
How to add a language
- Before continuing, check the i18n folder first to see if your language is already being worked on.
- If a translation does not exist for your language yet:
- Fork the repo.
- Create a new branch for your translation.
- Go to the
i18n
folder. - Copy the
vi-vn.json
file and rename it accordingly.- The name must be an ISO 639-1 code with country (if needed)
- e.g.
en-us
is for English (United States)
- Translate all the strings in your newly created file.
- Add your language to
langs.json
- Add your language to the README, in the Translations section.
- Format:
- Language (added by [@username](https://github.com/username))
- Format:
- Commit your changes and create a pull request.
- If you didn't understand a single thing above: Create a new issue with your translation file and I'll do it for you!
- You should also update your translation whenever new strings are added.
- Occasionally check the
vi-vn.json
file for changes if possible.
- Occasionally check the
Licensed under GNU AGPLv3
External project licenses:
- IBM Plex Sans: Open Font License
- omggif: MIT License