Re: Creating a new image loader

Lubos Lunak <[email protected]>
Newsgroups gmane.comp.kde.gwenview
Message-ID <[email protected]>
On Monday 21 of May 2007, Ruben Lopez wrote:
> Hi,
>
> I want to add my custom image format to gwenview. I have searched
> documentation and found that I should add this to KDE, which means
> adding it to Qt, this way:
>
> QImageIO::defineIOHandler( "format-name", "header-regexp", 0, read_func,
> write_func );
>
> But how can I make gwenview know this new format, I mean, should I make
> a .so library and put it somewhere where gwenview will look for?
>
> I can force loading of a .so library along with gwenview with an
> LD_PRELOAD, but I would like to use a cleaner way ;)

 Have a look at KImageIO 
(http://websvn.kde.org/branches/KDE/3.5/kdelibs/kimgio/ , there's README).

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: [email protected] , [email protected]
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http//www.suse.cz

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.