You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started working with node red specifically for this image tools. Currently I have several HA automations based on sensors that send push notifications based on security camera motion alerts. But certain 'wide angle' views would be better to be sent cropped first at specific trigger event points. So I planned on using node red to do the same automation, watch for sensor, take snapshot, crop image, send cropped image.
My cameras are 4k so pixel size is 3840 x 2160 on HA > Camera > Take Snapshot.
After using node red to taking the snapshot and trying to crop the image, I kept running into errors and issues after the snapshot was taken. I tried passing the image in the buffer msg and I tried saving the image and loading the image. [at first I found out the node red issue with the URL/directory of HA, which I resolved by using 'homeassistant' instead of 'config' in the path, which solved some issues but still ran into image processing errors.] I started to assume it might be size issue, so I cropped several versions and found that the smaller versions could run without issue.
I have separated out just the image processing part to narrow down the issue since I can trigger the camera snapshot without issue.
When I run this flow, using the original file created by the HA snapshot I get this error: "Error: unknown JPEG marker 0"
The same flow runs fine on 2 different versions that I downloaded, cropped smaller, and reuploaded to the same directory.
Is this an issue with the large file size of the image being too big or is this an issue somehow with the way HA snapshot saves the jpg? (I could try to down sample the camera snapshot or use the smaller substream image but I needed the HD original since after cropping I would lose size and detail anyways.)
I started working with node red specifically for this image tools. Currently I have several HA automations based on sensors that send push notifications based on security camera motion alerts. But certain 'wide angle' views would be better to be sent cropped first at specific trigger event points. So I planned on using node red to do the same automation, watch for sensor, take snapshot, crop image, send cropped image.
My cameras are 4k so pixel size is 3840 x 2160 on HA > Camera > Take Snapshot.
After using node red to taking the snapshot and trying to crop the image, I kept running into errors and issues after the snapshot was taken. I tried passing the image in the buffer msg and I tried saving the image and loading the image. [at first I found out the node red issue with the URL/directory of HA, which I resolved by using 'homeassistant' instead of 'config' in the path, which solved some issues but still ran into image processing errors.] I started to assume it might be size issue, so I cropped several versions and found that the smaller versions could run without issue.
I have separated out just the image processing part to narrow down the issue since I can trigger the camera snapshot without issue.
When I run this flow, using the original file created by the HA snapshot I get this error: "Error: unknown JPEG marker 0"
The same flow runs fine on 2 different versions that I downloaded, cropped smaller, and reuploaded to the same directory.
Is this an issue with the large file size of the image being too big or is this an issue somehow with the way HA snapshot saves the jpg? (I could try to down sample the camera snapshot or use the smaller substream image but I needed the HD original since after cropping I would lose size and detail anyways.)
The text was updated successfully, but these errors were encountered: