What does HackerNews think of sharp?
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
[1]: https://hntrends.net/api/og?word=twitter [2]: https://github.com/lovell/sharp
I ended up using sharp [1] since it was so easy to integrate into my workflow.
https://github.com/lovell/sharp
Benchmark
You could easily set up a simple node.js program that uses fs.watcher to watch for new files, and https://github.com/lovell/sharp to process the two most recent images and see if the pixels are identical. If you need to package this into a standalone executable, you could use https://www.npmjs.com/package/pkg. Then you could use the built-in SMTP sender (if it is not blocked on your network) or mailgun or something of that nature to send the email.
You can do the same thing in other languages, like ruby, python, etc as well.
If the two images files are literally identical as in the same jpeg with all the same bytes, you could do this with a bash script that compares the sha1 or md5 hash of the two files and then consult https://stackoverflow.com/questions/5155923/sending-a-mail-f... for how to send an email from a bash script.
The backend for the processing service is nodejs and sharp[1], processed images are cached on CloudFlare. The processing servers are a custom instance type in an autoscaling group on Google Cloud.
Any feedback is greatly appreciated!
I built a simple image-resizing server with a query string API using libvips [2]. This is based on sharp [3], a good wrapper of libvips for Node.js.
[1] https://github.com/jcupitt/libvips