Drag β Crop β Bam, your image is in ImgOps, ready to be stalked, searched, or memed.
-
First, make the script executable. Because Linux wonβt run your stuff unless you give it permission like some kind of medieval gatekeeper:
chmod +x /path/to/opsearch.py
-
Want it like a real app,:
-
(add the file path to .py in the .desktop file befor doing this )
-
Copy the
.desktop
file into/usr/share/applications/
:sudo mv imgops.desktop /usr/share/applications/
-
Boom. Now you can add a shortcut by using the build in system (kde : settings->keyboard->lookdown
-
(If it doesnβt, cry, then log out and back in).
-
I donβt have Windows (I like dont like updating). But if you really want to run this on Win:
-
Install pyinstaller:
pip install pyinstaller pyinstaller opsearch.py
-
This will spit out a
.exe
file somewhere -
Double-click
-
For shortcutsβ¦ uhβ¦ right click β "Create Shortcut" β drag it around β done. (Ask Clippy if confused.)
Β―*(γ)*/Β― (Probably works like Linux but with extra dongles.)
- Python 3.9+
- Pillow
- Playwright (and yes, you need to install browsers once with
playwright install
) - Tkinter (usually comes with Python unless your distro is evil)
Install them all:
pip install -r requirements.txt
playwright install
python opsearch.py
- Fullscreen dims like youβre in The Matrix.
- Drag a rectangle around the cursed thing you want.
- The crop uploads to ImgOps.
- Your browser opens, and bam β reverse search away.
MIT β do whatever you want, just donβt blame me when the NSA reverse-searches your cat pics.