Hi guys,

I was developing a QImageIOPlugin for FLIF (Free Lossless Image
Format, http://flif.info/) and was quite disappointed to not being
able to find any application which would use it.
Well, that was until that I noticed WebP started working in both
Dolphin and Gwenview after installing my WebP plugin. Even without the
plugin installed, WebP files were treated as images even though it
could not generate any image for it. So this convinced me that it has
to do something with how this filetype is configured on either the
system or KDE.

After a lot of exploring on my filesystem I found this file:
   /usr/share/kservices5/qimageioplugins/webp.desktop
When I copied and modified it for FLIF, Gwenview would now recognize
them as images and decoded them just fine. Dolphin will still not
generate thumbnails however, so I'm still missing something. (I know
about the ThumbCreator interface, but until I'm interested in writing
a specialized version, I would rather avoid having to if I can. I'm
hopeful since I did not have to do anything for WebP after all.)

While I did get it to work with Gwenview, I'm not exactly sure what I
would need to do to replicate it (when making the install script). I
did mess around with registering its MIME-type and such after all, so
I'm not sure if it depends on some of my flailing around. I would be
grateful for any details on this. (I'm on Arch, so I'm interested in
both KDE4 and KDE5.) Knowing what kind of KDE applications I should
expect this to work in, or what kind of plugin I would need to write
to make it do so, would be nice as well.

Best regards,
Sebastian Wahl

Reply via email to