@thebearmay is right -- this limitation makes it basically impossible to put an image from take()
directly onto a dashboard because it is much bigger than 1024 characters.
Instead, I made a small companion app here that I use to re-serve the images for dashboard use - Ubiquiti Unifi Protect cameras - #127 by tomw
I never made it part of my main UniFi Protect package because there wasn't much response when I posted it, but you are welcome to try it out and I'd appreciate any feedback.