yoursunny / esp32cam

OV2640 camera on ESP32-CAM, Arduino library
https://esp32cam.yoursunny.dev
ISC License
499 stars 174 forks source link

Set the image quality #14

Closed UKNickyD closed 4 years ago

UKNickyD commented 4 years ago

How do we set the image quality? I can see in the examples how to set resolution, but no way to set quality.

Thanks

yoursunny commented 4 years ago

If you are referring to JPEG quality, use config.setJpeg(70): https://github.com/yoursunny/esp32cam/blob/fc136a4d5a4a41ad8d2eac4545964fc0a731c78c/src/internal/config.hpp#L47-L50

UKNickyD commented 4 years ago

Excellent!

Thanks for the quick reply, and well done on an great library :)