Re: Creating a new image loader
Aurélien Gâteau <[email protected]>
| Newsgroups | gmane.comp.kde.gwenview |
|---|---|
| Message-ID | <[email protected]> |
Ruben Lopez wrote: >> You should have a look at the mimetypeutils.cpp file: in the >> rasterImageMimeTypes(). Does the list returned by KImageIO::mimeTypes() >> contains your format? If not, try to hardcode it like it's done for the >> xcf and pjpeg ones. You should also check that you have a proper mimetype >> file installed in $KDEDIR/share/mimelnk/image/. >> > I have created the $KDEDIR/share/mimelnk/image/x-pic.desktop and now > even Konqueror recognize this image as a PIC Image file. But gwenview > still doesn't work. > I have tested the KImageIO::mimeTypes in a custom program and the > image/x-pic mime type gets listed. > Any other hint? Just to be sure, check that image/x-pic is there in Gwenview (just modify the code to print it to stdout) You can also enable logging in the Document*Impl classes: to do so, open the .cpp file for which you want logs and uncomment the line "//#define ENABLE_LOG". I suggest you start with DocumentLoadingImpl and ImageLoader (this one is a bit different, you should set ENABLE_LOG to 1 or 2, depending on the verbosity you want). Aurélien ------------------------------------------------------------------------- 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/ _______________________________________________ Gwenview-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gwenview-general