Skip to content

Converts a PNG on the windows clipboard into a JPEG you can paste

License

Notifications You must be signed in to change notification settings

foone/pastejpeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pastejpeg

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.

Usage

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.

Testing

I have only tested this with Chrome, Mastodon, and Paint.NET. It is entirely possible it doesn't work elsewhere

Requirements

  • Python 3.x (Tested with 3.11.0)
  • Pillow (tested with 9.4.0)

License

GPL v3

About

Converts a PNG on the windows clipboard into a JPEG you can paste

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages