After capture
Run your own command after every copy or save, for example to upload the image.
Enquadre can run a command after every copy or save. To set the command, choose Settings... in the tray menu and fill in After capture. You can also add an after line to settings.txt:
after curl -s -F file=@{file} https://example.com/upload- Enquadre replaces
{file}with the quoted path of the image. After a save, the path points to the saved file. After a copy, the path points to a temporary PNG. - Do not put quotes around
{file}or the argument that contains it. Enquadre adds the quotes. - If the command has no
{file}, Enquadre adds the path at the end. - The command runs through
cmd /Con Windows andsh -con macOS and Linux. - Each run gets its own temporary file, so a slow command never reads the next capture.
- If the command prints a link, Enquadre copies the first
httporhttpslink instead of the image. On Windows, a notification shows the link or the error from the command.