Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Outline

Image Cropper

This code allows you to crop images and save them.

Executing the code

  1. Run the .py file by running the command python3 crop.py in the terminal or cmd.
  2. Use the Left mouse button to drag out a rectangular region of the image you want to crop. Release the button, once you are done.
  3. The selected rectangular is shown on the image.
  4. Press c to crop the image. A new window opens up.
    a) Press s to save the cropped image.
    b) Press r to reset and return to the original image.
  5. Repeat from step 2 to crop more images.

Demo

Refrences

  1. Mouse events tutorial
  2. Pyimagesearch tutorial
Morty Proxy This is a proxified and sanitized view of the page, visit original site.