diff --git a/src/app/commands/cmd_change_pixel_format.cpp b/src/app/commands/cmd_change_pixel_format.cpp index 138dcf083..3a83b6330 100644 --- a/src/app/commands/cmd_change_pixel_format.cpp +++ b/src/app/commands/cmd_change_pixel_format.cpp @@ -548,8 +548,10 @@ void ChangePixelFormatCommand::onLoadParams(const Params& params) m_rgbmap = doc::RgbMapAlgorithm::OCTREE; else if (rgbmap == "rgb5a3") m_rgbmap = doc::RgbMapAlgorithm::RGB5A3; - else - m_rgbmap = doc::RgbMapAlgorithm::DEFAULT; + else { + // Use the configured algorithm by default. + m_rgbmap = Preferences::instance().experimental.rgbmapAlgorithm(); + } std::string toGray = params.get("toGray"); if (toGray == "luma")