My IP camera saves a video (
.mp4 file) and a picture (
.jpg file) every minute to my Pi, which is set up as an FTP server.
I want to open the latest picture with ImageMagick every 5 minutes.
The filename contains a timestamp, so I don't know how to call the JPEG file in a terminal command. The filename looks like this:
I can find the newest filename in the folder
by doing a
cd into the folder and running
ls -t *.jpg | head -1.
But how can I open an image in ImageMagick based on this?
Also, how can I delete the