A simplistic screenshot tool focused on easy modability.
Please note: This project has officially been abandoned. Refer to Perdyshot for the maintained successor.
Navigate to the directory UploadTo is in, and run python uploadto.py
with any arguments you may want.
Name | Description | Valid values | Required |
---|---|---|---|
--from |
The source from which to get the image |
region , screen , monitor , clipboard , file
|
required |
--to |
What to do with the image | imgur |
required |
Please note that UploadTo is still in Alpha and will have bugs and issues.
UploadTo was developed on a Windows computer with cross-platform compatibility in mind. It should work on the majority of Linux distros and OSX (untested).
- Clone this repo in git, or download the master as a zip or tarball and unzip it somewhere on your computer.
- Make sure you have Python installed. I coded this using Python 2.7 x32, but it should work with most other win32 versions. Please note that it only works on Python win32, and that you can run Python win32 just fine on a 64 bit computer. If you experience issues, try install Python 2.7 x32 and make it run with that install.
- Install all the requirements, if you don't have them already. List of requirements.
- (Optional) Set up hotkeys.
- Make sure you have pip installed. Open a command line (
cmd
in a run dialog or search window) and runwhere pip
. If the result is just a path likec:\Python27\Scripts\pip.exe
then you already have it installed. If not, download get-pip.py and simply runpython get-pip.py
in the directory you saved it in. You may need to run it from an elevated command prompt (right click oncmd.exe
and choose "Run as administrator") - Install the all-in-one GTK+ bundle.
- Install PyQt4.
- Install wxPython.
- Run the following commands in command prompt:
pip install imgurpython
pip install pyperclip
pip install PIL
pip install pygtk
- Register for the imgur API
- Update
uploadto.py
with your API credentials.
- Make sure you have pip installed. Open a shell window (usually Ctrl + Alt + T) and run
which pip
. If the result isn't a path, you don't have it installed. To install it, installpython-pip
with your favorite package manager:sudo apt-get install python-pip
sudo yum install python-pip
sudo pacman -S python-pip
- Install PyQt4 with your favorite package manager:
sudo apt-get install python-qt4
sudo yum install python-qt4
sudo pacman -S python-qt4
- Install wxPython with your favorite package manager:
sudo apt-get install python-wxgtk2.8
sudo yum install python-wxgtk2.8
sudo pacman -S install python-wxgtk2.8
- Install xclip with your favorite package manager:
sudo apt-get install xclip
sudo yum install xclip
sudo pacman -S xclip
- Run the following commands:
pip install imgurpython
pip install pyperclip
pip install PIL
pip install pygtk
- Register for the imgur API
- Update
uploadto.py
with your API credentials.
- Create a directory to store the shortcuts in.
- In the directory create a new shortcut (right click → New → Shortcut).
- Put
python path/to/uploadto.py
in the input field and add the arguments you want. - Name the shortcut something appropriate (e.g. region if this is the region shortcut).
- Right click on the shortcut → Properties.
- Pick a shortcut key and set Run to Minimized.
- Repeat steps 2 – 7 until you have all the hotkeys you want.
Please note that Windows has a known bug that causes these hotkeys to sometimes stop working.
Follow this handy guide by MakeTechEasier.
Since you're using Linux, you should know how to set this up.
- Create a GUI mode
- Create an installer that automatically installs all dependencies (or as many as legally allowed)
- Optimize the speed (region is ridiculously slow)
- Add a
--from window
that captures the active window. Currently waiting for this StackOverflow question to get answered. - Add an Esc to cancel region select, and right click to select new rectangle.
- Add support for more more image hosts other than imgur.
- Add an export to file mode with custom string formatting
- Add a
--no-sound
. - Add a
--print-url
that prints the URL instead of copying it to the user's clipboard.