Docs

Paste Image Hook

The pasteImage hook lets you modify pasted images.

To create a pasteImage, add pasteImage.sh in {workspace}/.nota/hooks/ and make it executable.

Here's an example pasteImage.sh that resizes the pasted image to fit 2048x2048:

#!/bin/bash
# @parameters imagePath

# resize pasted image
mogrify -resize 2048x2048\> "$1"

parameters

The @parameters notation tells Nota which values to pass to the script: