I send a camera snapshot when my doorbell (unifi doorbell g4) rings to my mobile android phone. Problem is the image shown in the notification is cropped. I read this is an issue about image ratio not being 2:1. Seem like I could make it work with the camera proxy component but I was not able to make it work right.
Try different max_image_width options, if you look at the post you referred to you’ll see that user did some math for their own camera resolutions to get the ratio to match their expectation. The user did this in a few posts above, you’ll want to follow the conversation. You need to provide a value that will result in a 2:1 ratio for your camera. I would also test teh camera snapshot feature to see if the ratio is different then too.
I don’t really understand how he found his 192 pixels value. He talks about resolutions of 640x480 and 1024x768. Both are 4:3 ratio. My camera also have a 4:3 ratio with a 1600x1200 resolution.
This give me an image of 1600x800, 2:1 ratio, but image still cropped in phone notification :(. Don’t know what I do wrong…
EDIT: interesting, if I remove the actions buttons, the image almost show in full with the configuration I just pasted. Seem like the total height a notification can take, including buttons is limited.
Can confirm, I’m trying it now but once I include actions I’m missing the top and bottom, and therefore sometimes cutting off whatever triggered motion. Looking for a fix ATM.