From 7e104ba414baa9ebf6519d6039de7f16b26ea66f Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 9 Jan 2026 21:29:21 +0100 Subject: [PATCH] UX improvement: don't blur GIF images by default solves a problem when activating images from PixelForge: in case users had "don't load defaults" set, images were always loaded with a strong blur. --- wled00/json.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wled00/json.cpp b/wled00/json.cpp index 542a3b62..3b647998 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -336,7 +336,10 @@ bool deserializeSegment(JsonObject elem, byte it, byte presetId) // end fix if (getVal(elem["fx"], &fx, 0, last)) { //load effect ('r' random, '~' inc/dec, 0-255 exact value, 5~10r pick random between 5 & 10) if (!presetId && currentPlaylist>=0) unloadPlaylist(); - if (fx != seg.mode) seg.setMode(fx, elem[F("fxdef")], elem[F("fxdef2")]); // WLEDMM fxdef2 added + bool doLoadDefault = elem[F("fxdef")] == true; + if (fx == FX_MODE_IMAGE) doLoadDefault = true; // WLEDMM quick fix: when called from PixelForge, images were always shown with blur + if (fx == FX_MODE_2DSCROLLTEXT) doLoadDefault = true; // same hack for scrolling text + if (fx != seg.mode) seg.setMode(fx, doLoadDefault, elem[F("fxdef2")]); // WLEDMM fxdef2 added } //getVal also supports inc/decrementing and random