From bb4b8f0bc5a9a1f9fc1867f6857960beb84f1490 Mon Sep 17 00:00:00 2001 From: David Gerber Date: Sun, 1 Sep 2024 22:51:22 +0200 Subject: [PATCH] Fix image data URI Make JPEG images use the image/jpeg mimetype instead of the wrong image/png one. --- retroshare-gui/src/util/imageutil.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/util/imageutil.cpp b/retroshare-gui/src/util/imageutil.cpp index 612387724..690872bdb 100644 --- a/retroshare-gui/src/util/imageutil.cpp +++ b/retroshare-gui/src/util/imageutil.cpp @@ -274,7 +274,9 @@ bool ImageUtil::optimizeSizeHtml(QString &html, const QImage& original, QImage & if(optimizeSizeBytes(bytearray, original, optimized,has_transparency?"PNG":"JPG",maxPixels, maxBytes)) { QByteArray encodedByteArray = bytearray.toBase64(); - html = ""); return true;