Closed Panik68 closed 1 month ago
you cannot rotate 90° or 270°, only vertical and horizontal flips so 180° would be both flips active ..
The camera module does not support rotating the photo by 90° and 270° degrees. I did not find a solution to rotate the image by 90° and 270° .
Thank you very much for your feedback. I have also checked again and it is indeed not possible to rotate the image. Apparently this is due to the camera module itself. What a pity.
it would be possible to add jpeg exif metadata and there you can define orientation (image rotation), so this way esp32 does not have to do any actual rotations, the client would be aware the image needs to be rotated, and modern browsers already do that
@nvtkaszpir Hmm this is good idea. I've never tried anything like that and ESP32-cam have a low RAM memory. but I will try to see if it is possible
@nvtkaszpir A perfect idea with EXIF. The OV2640 does not generate EXIF data in the JPG file. However, I managed to add EXIF to the photo, and rotation works. I am still testing it, but if the tests go well, this change will appear in firmware version 1.0.3.
@Panik68 and @nvtkaszpir new FW v1.0.3-rc1 has added a support for EXIF and image rotation :)
ha, awesome!
Could the rotation of the image in 4 steps 0(360), 90, 180, 270° be included in the next update?