Re: Porting Softimage PIC loader to KDE4 / gwenview
Ruben Lopez <r.lopez-u/[email protected]> Thu, 23 Jul 2009 17:08:36 +0200
| Newsgroups | gmane.comp.kde.gwenview |
|---|---|
| Message-ID | <[email protected]> |
Aurélien Gâteau escribió: >> I have modified the gwenview sources to force the x-pic mime type, but >> then it doesn't recognize it as a raster image, but a generic file >> instead. It seems that gwenview is still using the old KImageIO plugin >> architecture instead of the strigi analyzers to find out which raster >> image formats are supported. I am using the version from kdegraphics >> 4.2.4. Is there a newer stable version with support for the strigi >> analyzers? If not, I can rescue the old KImageIO plugin and port it. >> > > I have never heard about using strigi analyzers to determine image > formats. Can you tell me more about this? > In fact, not. I thought that this could be possible. But it seems that it is not. The existing strigi analyzers fail to provide even the mime type. I finally have made it work without the strigi analyzer at all. It was a bug in my code that only showed up when the image was loaded from a memory buffer. The tutorials that I have found in Internet, didn't took into account this case either, and didn't setted the format of the image manually. Because of this, gwenview wasn't able to compute the image size. Thanks for your support, I will try to contribute the new loader to the kdegraphics team. ------------------------------------------------------------------------------