When you specify an Imgur link, it will be downloaded and cropped according to the dimensions you specify (height/width).
This is useful because it allows users to post these images in social media platforms where only some specific dimensions are accepted, such as Instagram or Twitter.
It can also detect any slurs using ProfanityFilter module and censor them using a random image from the "Censor Images" folder.
You can press enter at any time to use the default settings, which can be changed by editing the code
Imgur links use the following format: https://imgur.com/gallery/xxxxxxx
Installation:
- Install the required modules: "pip install python-slugify"...
- Download language file for profanity detecton "python -m spacy download en"
- Download Imagemagick (make sure it's in the system path) https://docs.wand-py.org/en/0.4.1/guide/install.html
- (Optional) If you wish to use profanity detection, download tesseract https://github.com/UB-Mannheim/tesseract/wiki and add the installation folder to your system path