Bug 418274 - Improve Thumbnail transparency
Summary: Improve Thumbnail transparency
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-Image (show other bugs)
Version: 6.4.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-27 23:49 UTC by Kamo
Modified: 2021-06-27 09:53 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kamo 2020-02-27 23:49:04 UTC
SUMMARY
Currently the preview image shows PNG files with transparent background correctly but in thumnail view it shows checkerboard patterns. Is it possible to display transparent background in thumbnail view as well?
Comment 1 Maik Qualmann 2020-02-28 05:35:21 UTC
The checkerboard pattern was a user request that worked a lot with graphics to estimate the position of the graphic in the thumbnail. You can also see in the thumbnail that it is a transparent image.

Maik
Comment 2 Kamo 2020-02-29 12:03:33 UTC
That makes sense. I still think it would be great to have choices to select transparency though. The checkerboard technically works, but not as aesthetically pleasing.
Comment 3 Jay 2021-02-24 20:31:31 UTC
I would agree with Kamo. It would be nice to have the option to turn this checkerboard on or off. I have a large number of tiff files that include an alpha channel containing IR data. The checkerboard effect makes them very unpleasant to work with.
Comment 4 Maik Qualmann 2021-03-04 21:09:03 UTC
Git commit 4472b594382a4e2e11f3b1272cf4d30ed7ded1e3 by Maik Qualmann.
Committed on 04/03/2021 at 21:07.
Pushed by mqualmann into branch 'master'.

add possibility to load a background for the alpha thumbnails
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +34   -0    core/libs/threadimageio/thumb/thumbnailcreator.cpp
M  +9    -20   core/libs/threadimageio/thumb/thumbnailcreator_engine.cpp
M  +6    -3    core/libs/threadimageio/thumb/thumbnailcreator_p.h

https://invent.kde.org/graphics/digikam/commit/4472b594382a4e2e11f3b1272cf4d30ed7ded1e3
Comment 5 Maik Qualmann 2021-03-04 21:15:25 UTC
digiKam uses a checkerboard as a background for transparent thumbnails by default. If the file exists under "~/.local/share/digikam/thumbnail/background.png", it will be used as the fill background. This "background.png" must have a size between 10-1024 pixels, it can be transparent, colored or a pattern.

Maik
Comment 6 Maik Qualmann 2021-03-04 21:32:20 UTC
The path under Windows is:

C:\Users\%USERNAME%\AppData\Roaming\digikam\thumbnail\background.png

Maik
Comment 7 Maik Qualmann 2021-06-27 09:53:36 UTC
*** Bug 439207 has been marked as a duplicate of this bug. ***