KImageIO::mimeTypes and SVG/SVGZ Files

Martin Koller kollix at aon.at
Tue Aug 30 22:50:14 BST 2011


Hi,

In my application I use KImageIO::mimeTypes to determine which formats I can load
(e.g. the output of it is used in my .desktop file to fill in the MimeType definition).

However I see that obviously Qt can already (to some degree) load .svg and .svgz files,
but KImageIO::mimeTypes does not return
image/svg+xml
image/svg+xml-compressed

The solution would be to add 2 new desktop files in kdelibs/kimgio (attached).
This would automatically allow all image applications to also load these file types,
as they are then allowed in the file selector as "supported format".

However, Qt can not load all SVG files correctly ...

Despite this fact, gwenview added these 2 MimeTypes as supported formats in the .desktop file,
so I wonder if we can add these generally.

Opinions ?

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svg+xml.desktop
Type: application/x-desktop
Size: 187 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110830/21fc027c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svg+xml-compressed.desktop
Type: application/x-desktop
Size: 221 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110830/21fc027c/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110830/21fc027c/attachment.sig>


More information about the kde-core-devel mailing list