I have a Lorex 4K IP home security camera system. 1 I wrote two blog articles that describe how to use its e-mail notification facility and its File Transfer Protocol (FTP) facility.
In those articles I mention scripts I wrote for my website to process and customize snapshots generated by my Network Video Recorder (NVR). I now make those scripts available for download. You can use them as a starting point for your own purposes. I wrote the scripts using PHP and they are provided in a ZIP file. If you download this file, un-ZIP it within your website development environment.
https://home.iseeancestors.com/access.php?file=cctvscripts.zip
You will be prompted for a user name and password. The user name is Guest and the password is scripts. The ZIP file includes complete documentation in Scripts.pdf.
I do not provide support or customization for these scripts. I might answer questions about them specifically, but not about programming, PHP, or your website in general. Again, these are meant only as a starting point for your own implementation. You must change the code to suit your particular circumstances. Therefore you must already have experience with PHP and website operation in order to utilize these scripts.