| Crates.io | svscr |
| lib.rs | svscr |
| version | 1.0.0 |
| created_at | 2024-09-12 14:34:08.723539+00 |
| updated_at | 2024-09-12 14:34:08.723539+00 |
| description | A simple tool that allows you to quickly save a picture from the clipboard to a file |
| homepage | |
| repository | https://github.com/ArmoredPony/svscr |
| max_upload_size | |
| id | 1372826 |
| size | 48,526 |
svscr stands for 'save screenshot' and does exactly that.
If you have an image saved in your clipboard, this command line tool will
save it into a file. It can be used with any picture in the clipboard,
not just screenshots.
This tool was created for and tested on Windows 10, but you can probably build it on Linux too.
svscr is a quick and dirty way to save a clipped screenshot or a picture from
a browser to any folder with any name using your terminal. Primarily used to
screencap jack's discord messages.
Put an image into your clipboard somehow and call svscr. This will create a
.png image in user's home directory with a timestamp for file name. This
directory is platform specific.
An example of such name: 2024-05-19-131457.png.
You can supply a positional argument NAME with desired file name. This
argument can also have file path and file extension. If the supplied path is
relative it is appended to user's home folder path. If it is absolute, it
will replace the default path.
-d or --dir can be optionally used to supply a target directory to save the
file to. If you supply directory with this flag and within file name, then
they will be concatenated. E.g. svscr inner/pic -d outer will create a file
with this path: .../outer/inner/pic.png.
-x or --extension can be used to add an extension to your file. It will
override the extension you supply within file name. E.g. svscr pic.png -x webp
will save pic.webp, not pic.png.
Either
cargo install svscr