TGA support for KDE

Waldo Bastian bastian at kde.org
Sun Jan 26 13:38:13 GMT 2003


On Sunday 26 January 2003 12:55, Dominik Seichter wrote:
> The code works in a separate application of mine very well, when registered
> with QImageIO::defineIOHandler( ... ). But it does not work at all when
> installed as a kimgio plugin, because KDE does not call the TGA plugin when
> I try to load an TGA file. Maybe my tga.kimgio is wrong or my changes to
> the makefile were incorrect.

Your .kimgio file should define a Header entry that can be used to identify a 
TGA file. This header entry is a regexp, see qimageio.html#defineIOHandler 
for details. Non-ascii chars should be encoded like this:

	Header=^\x01\x01\x01\x0C\x6A\x50

(Example from jp2.kimgio file)

Cheers,
Waldo
-- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com





More information about the kde-core-devel mailing list