Magic Crop Save Abandoned

Crop your perfect headshot with AI!

Project README

Magic Crop

A free online tool that uses AI and the rule of thirds to automatically crop input photos into square headshots at a smart ratio without sending images to any server, perfect for social media profiles like Linkedin and Twitter that need tight crop. It can even batch-crop multiple images!

Build Status

Live Demo - Launch Magic Crop in your browser

Demo of Site

Demo of website

Feature Highlights

Input Files

Drag and drop your image from your machine onto the page. Magic Crop supports batch cropping multiple images, so go ahead and drag multiple images in, and save tons of time!

Drag and drop region

Alternatively, you can use the "upload file(s)" button to browse the file explorer for your image.

Upload files button

Where Does The Magic Come from?

Magic Crop detects your face using face-api.js, then resizes and crops your photo, so your eye is placed roughly at 1/3 of the image height, and your face is roughly 1/2 of image height.

Modify Settings

Click the "change settings" icon to open the settings menu. Here, you can change the following options:

Change settings button

Auto-download

By default, the cropped image will automatically download in your downloads folder using the naming format: originalFileName_cropped and the file type of the original file. Alternatively, if you turn auto-download off, you can right click on the image on the site and click "save image as..."

Best Effort Crop

If the picture you chose is too narrow for the selected proportion of the height of the face to the height of the entire picture, then your picture will be cropped to the size chosen and the proportion of face height will be as small as possible.

Cropped Square Photo Size

By default, your cropped image will be resized to 200x200 pixels. Input a number to change the size of the image.

Proportion of Face to Height of Entire Picture:

By default, the height of the face in the image will take up 1/2 of the height of the entire picture. Use the dropdown to change the height to face height ratio.

Credits

Magic Crop was created by Megan Dass, advised by Dr. Polo Chau

License

The software is available under the MIT License.

Contact

If you have any questions, feel free to open an issue or contact Megan Dass.

Open Source Agenda is not affiliated with "Magic Crop" Project. README Source: poloclub/magic-crop
Stars
52
Open Issues
0
Last Commit
3 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating