For changing a specific image's size I use the following command:
mogrify -geometry x50 my_image.png
Every time that I take a new print screen, an image is saved on my
~/Pictures folder. I'd like to make a script that watches my
Pictures folder and takes an action copying a reduced sized version of my new image to a different folder on my computer, e.g.
I know I could solve this problem using
cron, but I don't really want to take actions at regular intervals of time. I want a command ( or a script) that can find out what's different on a folder based on logs or something like this. Is that possible? How can I do it?