Bug 469740 - SVG lable icons are not displayed anymore
Summary: SVG lable icons are not displayed anymore
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-QImage (show other bugs)
Version: 8.0.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-14 12:30 UTC by Frédéric Virot
Modified: 2023-05-16 16:43 UTC (History)
1 user (show)

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


Attachments
issue screen shot (76.60 KB, image/png)
2023-05-14 12:30 UTC, Frédéric Virot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Virot 2023-05-14 12:30:16 UTC
Created attachment 158937 [details]
issue screen shot

It is possible to to select an SVG file as the icon of an image tag. It has been so for quite a while. The Tags view used to display them correctly. It is not the case anymore. Instead of the actual chosen icon, a standard "no file" icon (?) is displayed. In my case, I get a monochrome "no parking sign" icon instead.

STEPS TO REPRODUCE
1. Select an image in the album view
2. Select the "Captions" --> "Tags" view in the right pannel (it probably works alike in the left pannel)
3. If there is no existing tag, right-click and select "New tag". If a tag already exists, right-click on it and select "Properties" 
4. In the dialog box that appear, click the button next to the "Icon: " text
5. In the "Select Icon" dialog, click the "Browse" button:
6. From the file selection modal dialog select any svg file and click "Open"
7. Confirm/Accept all open dialogs


OBSERVED RESULT
The chosen svg icon is not displayed as expected.

EXPECTED RESULT
The chosen svg icon is displayed as it was the case in earlier (6.x for sure, 7.x I do not know for sure).

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
I only report this issue now, but it has been around for many a month now, maybe a year or slightly more.
Before that issue occured, I used to favor SVG icons for my labels (I used them extensively) and it worked very well. It stopped to work somewhere in the 7.x series (not sure) . 
This issue does not seem to be linked to Ticket 422900.
Comment 1 caulier.gilles 2023-05-14 12:50:26 UTC
Hi,

SVG rendering is delegate to Qt plugin, which is optional. There is no code to handle SVG in digiKam.

So, check that qt plugin is installed on your system.

Best

Gilles Caulier
Comment 2 caulier.gilles 2023-05-14 12:54:00 UTC
Go to Setup/Plugins/Image Loader, and check if Qt plugin support SVG. If no, look the Image Magick plugin which has also a support for SVG, if Qt do not provide the right plugin.

https://docs.digikam.org/en/setup_application/plugins_settings.html

For my computer (Kubuntu 23.04), both are present.

Gilles
Comment 3 Maik Qualmann 2023-05-14 14:10:40 UTC
Git commit 8e75b74ca5f93ada4ef9d65c9288ebcbe9de0ccb by Maik Qualmann.
Committed on 14/05/2023 at 14:09.
Pushed by mqualmann into branch 'master'.

add support to load external icon files
FIXED-IN: 8.1.0

M  +1    -1    NEWS
M  +18   -1    core/libs/album/engine/albumthumbnailloader.cpp

https://invent.kde.org/graphics/digikam/commit/8e75b74ca5f93ada4ef9d65c9288ebcbe9de0ccb
Comment 4 Maik Qualmann 2023-05-14 14:20:18 UTC
Git commit 39f2f7e70829a3de623ffa2d77487c224019e426 by Maik Qualmann.
Committed on 14/05/2023 at 14:19.
Pushed by mqualmann into branch 'master'.

check loading external pixmap

M  +11   -5    core/libs/album/engine/albumthumbnailloader.cpp

https://invent.kde.org/graphics/digikam/commit/39f2f7e70829a3de623ffa2d77487c224019e426
Comment 5 Frédéric Virot 2023-05-16 16:43:49 UTC
Thanks a lot! Very fast answer & fix!
Best Regards
Fred