From adcb295a5e9e1948b5c0fb4d8a78efcae6948b25 Mon Sep 17 00:00:00 2001 From: Andrew Haynes Date: Sun, 22 Mar 2026 18:47:39 -0400 Subject: [PATCH] REVERT: the last commit didnt fix anything --- src/imgio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imgio.c b/src/imgio.c index 324d36f..1739671 100644 --- a/src/imgio.c +++ b/src/imgio.c @@ -169,7 +169,7 @@ jpeg_save(const unsigned int* src_buf, const JPEG* attr, const char* name) tj3Set(tjcompress, TJPARAM_QUALITY, 80); tj3Set(tjcompress, TJPARAM_SUBSAMP, TJSAMP_420); if (tj3Compress8(tjcompress, (unsigned char*)src_buf, attr->width, 0, - attr->height, TJPF_ARGB, &dst_buf, &dst_size) < 0) + attr->height, TJPF_BGRA, &dst_buf, &dst_size) < 0) { printf("TurboJPEG Error: %s\n", tj3GetErrorStr(tjcompress)); }