Debian 11 upgraded to a Debian 12 (Plasma 5.27.5, qt 5.15.8)
When You push the PrtScn key and save the screenshot as a JPEG, it fails showing the errors:
jpg QImageWriter cannot write image: Unsupported image format
Cannot save screenshot. Error while writing file.
according to 3 years old unfixed bug 439519 – When "*jpe" is a file association, saving a JPEG in apps uses ".jpe" as the extension the workaround is:
System setting>Applications>File associations
Look up the enter jpeg in the filename search box.
Click the image, jpeg
The Filename Patterns list to the right has .jfif or *.jpe as the first pattern in the list. Select this, click Remove, make sure there is *.jpg and click Apply.