https://bugs.kde.org/show_bug.cgi?id=441090
Bug ID: 441090
Summary: Thumbnail manually prepared for unsupported file
format does not display
Product: kio-extras
Version: 21.08.0
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Thumbnails and previews
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 140799
--> https://bugs.kde.org/attachment.cgi?id=140799&action=edit
a vcard for a duck
SUMMARY
In order to develop a new thumbnailer program for vcard file format (.vcf) I
tried to manually put a thumbnail in $HOME/.cache/thumbnails/ for a sample
file. It didn't show it in Dolphin.
I am not sure if I selected the right product and component for this issue.
STEPS TO REPRODUCE
1. cp ducky.vcf /tmp/ # see attachments
2. wget
https://upload.wikimedia.org/wikipedia/commons/b/bf/Bucephala-albeola-010.jpg #
an image i want to use as a thumbnail
3. for i in 128x128:normal 256x256:large 512x512:x-large 1024x1024:xx-large; do
convert -thumbnail "$(echo "$i"|cut -d ':' -f 1)" Bucephala-albeola-010.jpg
"$(echo "$i"|cut -d ":" -f 2)".png; done # prepare thumbnails
4. for i in normal.png large.png x-large.png xx-large.png ; do exiftool -config
$HOME/exiftool.config -overwrite_original -ThumbURI="file:///tmp/ducky.vcf"
-ThumbMimetype="text/vcf" -ThumbImageWidth-=1536 -ThumbImageHeight-=1024
-ThumbSize=195 -ThumbDocumentPages-=1 -ThumbMTime="$(stat --printf "%Y"
ducky.vcf)" "$i"; done # Edit metadata according to freedesktop's specification
5. md5="$(echo -n "file:///tmp/ducky.vcf"|md5sum|cut -d ' ' -f 1)" # find md5
for this file
6. for i in normal large x-large xx-large; do mkdir -p
$HOME/.cache/thumbnails/"$i"; cp -a "$i".png
$HOME/.cache/thumbnails/"$i"/"$md5".png; done # copy thumbnails where they
belong.
OBSERVED RESULT
In dolphin, when I look inside /tmp, my vcard does not have the thumbnail I
prepared.
EXPECTED RESULT
I expected to see the thumbnail I prepared for this file, even though it is of
a file format for which I have no thumbnailer declared.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kaos (2021)
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
ADDITIONAL INFORMATION
In order for exiftool to set these metadata, I prepared a config file with this
content in $HOME/exiftool.config:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::PNG::TextualData' => {
'Thumb::URI' => {
Name => 'ThumbURI',
Writeable => 'string'
},
'Thumb::MTime' => {
Name => 'ThumbMTime',
Writeable => 'integer'
},
'Thumb::Size' => {
Name => 'ThumbSize',
Writeable => 'integer'
},
'Thumb::Mimetype' => {
Name => 'ThumbMimetype',
Writeable => 'string'
},
'Thumb::Image::Width' => {
Name => 'ThumbImageWidth',
Writeable => 'integer'
},
'Thumb::Image::Height' => {
Name => 'ThumbImageHeight',
Writeable => 'integer'
},
'Thumb::Document::Pages' => {
Name => 'ThumbDocumentPages',
Writeable => 'integer'
},
'Thumb::Movie::Length' => {
Name => 'ThumbMovieLength',
Writeable => 'integer'
}
},
);
1; #end
--
You are receiving this mail because:
You are watching all bug changes.