Bug 431070 - Filetype .wmf can't be displayed
Summary: Filetype .wmf can't be displayed
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-Image (show other bugs)
Version: 7.1.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-02 15:08 UTC by Kaenguru
Modified: 2021-03-10 15:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0


Attachments
sample wmf file (25.97 KB, image/wmf)
2021-01-02 15:08 UTC, Kaenguru
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kaenguru 2021-01-02 15:08:41 UTC
Created attachment 134474 [details]
sample wmf file

I would like dikikam to display .wmf clipart files, which unfortunately doesn't work.

I have a folder with some .wmf files ( one of which attached for reference).
It's added to the Albums, but doesn't show a thumbnail nor can it be displayed as preview.

When launching the programme  there are errors:

digikam.general: Cannot create thumbnail for "/home/gimpy/Bilder/wmf/0013.wmf"
digikam.general: Thumbnail is null for  "/home/gimpy/Bilder/wmf/0013.wmf"
digikam.metaengine: Cannot load metadata from file /home/gimpy/Bilder/wmf/0019.wmf  (Error # 11 :  /home/gimpy/Bilder/wmf/0019.wmf: Die Datei enthält Daten eines unbekannten Bildtyps.
Looks as if it determines the files as HEIF, but they are .wmf.

OBSERVED RESULT
no thumbnails of wmf files, no preview


EXPECTED RESULT


SOFTWARE/OS VERSIONS
digikam 7.1.0 Appimage
on Linux Mint 19.2
Linux (x86_64) release 4.15.0-128-generic
Comment 1 caulier.gilles 2021-01-02 16:13:35 UTC
WMF are video files and must be supported by default in Linux AppImage bundle, as we use ffmpeg in background to render video files.

Gilles Caulier
Comment 2 caulier.gilles 2021-01-03 13:13:20 UTC
Correction : WMF is not a video, but a vector graphic image (aka SVG for ex)

bash-3.2$ file 0025.wmf 
0025.wmf: Windows metafile

https://en.wikipedia.org/wiki/Windows_Metafile

Currently this kind of file is interpreted as a video in digiKam, which is wrong of course...

In digiKam, we have a ImageMagick image loader plugin which support this format :

https://imagemagick.org/script/formats.php


Gilles Caulier
Comment 3 caulier.gilles 2021-01-03 13:49:32 UTC
Git commit c7524fa30c64354f14cb8f68a3797f366fd6e76d by Gilles Caulier.
Committed on 03/01/2021 at 13:48.
Pushed by cgilles into branch 'master'.

WMF is a vector graphic image file, not a video file

M  +77   -16   core/libs/database/coredb/coredbschemaupdater.cpp
M  +1    -1    core/libs/database/coredb/coredbschemaupdater.h

https://invent.kde.org/graphics/digikam/commit/c7524fa30c64354f14cb8f68a3797f366fd6e76d
Comment 4 caulier.gilles 2021-01-03 18:20:15 UTC
Voilà:

https://i.imgur.com/MPnJJPb.png

With my last change, WMF is now processed as an image by ImageMagick.

If contents of image is not perfect, report this problem to ImageMAgick team as codec is implemented in this software component.

Gilles Caulier
Comment 5 Kaenguru 2021-03-10 15:26:59 UTC
Have to come back to this, sorry.
My field for ImageMagick loader is completely empty. How do I get those entries in that I can see in your screenshot?