Quickly upload an edited image to your favorite providers
Instead of only giving the option of one provider, Gradia allows you to either select one of the predefined ones or create your own. This page explains the basic idea behind this system, provides some explanation for popular providers, and includes information on how to craft commands for your own setup.
All providers are just a bash command behind the scene. Including all the predefined ones,
this makes it easy to add new options in the future and allows you to create custom ones as well.
The command simply receives the image path as $1
and
outputs the final URL to stdout.
curl -F "file=@$1" https://api.service.com/upload | jq -r '.url'
Note: Not all commands or functions are available in the Flatpak or the Snap by default. You may need to modify permissions. For Flatpak, this can be done via Flatseal.