https://bugs.kde.org/show_bug.cgi?id=524594

            Bug ID: 524594
           Summary: Malformed metadata in summer_1am wallpaper causes
                    repeated qt.imageformats.tiff ImageLength warnings
    Classification: Plasma
           Product: plasmashell
      Version First 6.7.4
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Wallpaper images
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

On KDE Plasma 6.7.4 on Arch Linux, opening the wallpaper selector causes
repeated TIFF warnings from KIO/Qt:

qt.imageformats.tiff: "TIFF directory is missing required \"ImageLength\"
field"

I traced the issue and isolated it to this default Plasma wallpaper:

/usr/share/wallpapers/summer_1am/contents/images/2560x1600.jpg

The file is provided by:

plasma-workspace-wallpapers 6.7.4-1

The other resolution JPEG files in summer_1am/contents/images/ are symbolic
links to the same 2560x1600.jpg file.

Steps to reproduce:

1. Have the summer_1am wallpaper installed from plasma-workspace-wallpapers.

2. Run:

dolphin --select /usr/share/wallpapers/summer_1am/contents/images/2560x1600.jpg

3. Dolphin produces repeated warnings:

qt.imageformats.tiff: "TIFF directory is missing required \"ImageLength\"
field"

The same warnings are produced by kioworker when opening Plasma's Desktop and
Wallpaper selector.

Isolation performed:

- I traced the offending kioworker processes with strace.
- summer_1am/contents/images/2560x1600.jpg was consistently accessed around the
TIFF warnings.
- Temporarily moving the entire summer_1am directory outside
/usr/share/wallpapers made the warnings disappear completely.
- Restoring the summer_1am directory made the warnings return.

I then tested whether the JPEG metadata was responsible.

I created a metadata-stripped copy using:

magick /usr/share/wallpapers/summer_1am/contents/images/2560x1600.jpg -strip
/tmp/2560x1600-clean.jpg

The cleaned file remained a valid 2560x1600 JPEG.

Opening the cleaned image with Dolphin produced no TIFF warnings.

I then replaced the packaged 2560x1600.jpg with the tested metadata-stripped
version. After doing this, the TIFF warnings also stopped completely when
opening Plasma's Desktop and Wallpaper selector.

This appears to indicate that malformed TIFF/EXIF metadata is embedded in the
original summer_1am JPEG. The JPEG image data itself appears to be valid and
displays normally.

Original packaged file SHA-256:

c868b50789591dd42910153c768053f1ba0a98cb36bbfc2b7a96a1045d0477f8

System information:

OS: Arch Linux x86_64
KDE Plasma: 6.7.4
Package: plasma-workspace-wallpapers 6.7.4-1
Affected wallpaper: summer_1am
Affected master image: contents/images/2560x1600.jpg

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to