I recently upgraded my security camera watching the driveway from a 1080 to a 4K because the 1080 could not always resolve the license plate numbers... The ubiquiti software that I have monitoring all the cameras handles both resolutions and has a command option allowing me to grab a real time snapshot and display it as a refreshing URL or using a python action script to create a JPG in the documents folder. The action script is triggered whenever the magnetic driveway sensor trips, saves the current picture and pushes back the prior 8 to give me the last 9 images catching vehicles coming and going. At 1080, this worked fine, and after the camera was upgraded, the URLs that query the camera API in real time continue to work fine. If I pull up the control page with the 9 small images or the individual control pages with the full screen image for editing on the server, those also load fine. But in the web browser, i get
- Code: Select all
file:///Users/*****/Documents/DrivewayFolder/Driveway0.jpg size too large: received 870455 / max 768000
in the log and no image. copying other camera images using the same script shows that the 1080 jpgs are roughly 280,000... I have no options in the Ubiquity download; it's just IP/API/Snapshot/Camera=?APIKEY=
And since the images do appear when that same URL downloads them directly, it's not any kind of a system limitation, so is there any reason for the limitation, or alternatively, does anyone know of a python lib that could squeeze the 4k images by 15% or so?