Write an RGBA buffer to a JPEG file.
<insightdock/png_writer.h>
[[visibility]]
bool
write_jpeg(
std::string const& path,
ImageBuffer const& img,
int quality = 90);
true on success.
| Name | Description |
|---|---|
| path | Output file path. |
| img | Source buffer (alpha composited onto white). |
| quality | JPEG quality 1–100 (default 90). |