This utility helps me to automate part of the process of creating learning guides for mathematical topics.
The idea is fairly simple:
- I make screenshots of the theorems I want to learn
- I make a rough crop using GIMP
- The theorem cropper allows me to crop all the extra white space in the borders of the theorem screenshot
- I'm happy because now I can turn these images into beautiful cards to be learned with Anki 😊 🤓
- Place the rough screenshots inside the
input/
directory - Run this:
> python3 cropper.py
- Profit! (you'll find the cropped files inside the
output/
directory)