~rostiger/tootpic

A bash script to automate compressing images and uploading them to Mastodon.
Made low res dithering optional
Added better tmp file names
Added better dithering and scale controls

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~rostiger/tootpic
read/write
git@git.sr.ht:~rostiger/tootpic

You can also use your local clone with git send-email.

#Tootpic

Tootpic automates compressing, resizing, dithering and uploading images to Mastodon.

Its repository can be found at https://git.sr.ht/~rostiger/tootpic/

#Dependencies

To use this script you need to install imagemagick command line tools. To upload it to Mastodon, it needs toot tui to be installed and configured.

#Usage

Download the script and put it into the ~/.local/bin/ directory to make it available from any location. Use chmod +x tootpic to make it executable. Now type tootpic in the terminal and add an image path. The script will guide you through the rest of the process.

Tootpic uses a text editor set with the $EDITOR environment variable and defaults to vi (tested with micro) It uses xdg-open to preview images with the systems default image viewer (tested with feh)

#License

See the License file for license rights and limitations (MIT).