Converts a PNG on the windows clipboard into a JPEG you can paste. I developed this to let me paste out of Paint.NET into mastodon, without the images ending up uploaded as very large PNG files.
Simply run pastejpeg.py with Python 3.x with a PNG on the clipboard. It'll be saved out to a JPEG file, then the path of the JPEG will be copied. Then you can paste it into a browser, and it'll upload as a JPEG, not a PNG. Optionally pass --gui and you'll get errors as message boxes, not command line messages.
I have only tested this with Chrome, Mastodon, and Paint.NET. It is entirely possible it doesn't work elsewhere
- Python 3.x (Tested with 3.11.0)
- Pillow (tested with 9.4.0)
GPL v3