Re: Portable any map format.
Aurélien Gâteau <[email protected]> Tue, 17 May 2011 11:22:56 +0200
| Newsgroups | gmane.comp.kde.gwenview |
|---|---|
| Message-ID | <[email protected]> |
On 23/03/2011 09:03, [email protected] wrote: > Hello gweenview list readers. Hi Paul, Sorry for the very late answer. > I'm not sure that gweenview support portable any map format (perhaps > the files i have tested are not well formatted). > = > This format does not seem to be supported by the default readers of > some distributions (slackware and ubuntu at least). Do you know some > reasons of this poor support (patent problem, buggy specs, ...) ? > > Would you accept this feature in Gweenview ? Can i purpose my help to > enable this format in gweenview ? Support for more formats is always welcome, but Gwenview relies on Qt and KDE image plugins to decode various image formats. As far as PNM files are concerned, read support is provided by Qt itself. You can find the code here: https://qt.gitorious.org/qt/qt/blobs/4.7/src/gui/image/qppmhandler_p.h https://qt.gitorious.org/qt/qt/blobs/4.7/src/gui/image/qppmhandler.cpp Reading PNM files should work in Gwenview. If you have a problem with a PNM image, I suggest you write a very simple Qt program to load your image. Something like this: #include <QImage> #include <QDebug> int main(int argc, char** argv) { QImage image; qDebug() << "load:" << image.load("image.pnm"); qDebug() << "size:" << image.size(); qDebug() << "save:" << image.save("image.png", "png"); return 0; } If the program creates an image.png file with the correct content, then the bug is in Gwenview. If not the bug is in Qt PNM handler. This should help you target where to work to get your image to appear in Gwenview. Aur=E9lien PS: It is spelled Gwenview, not Gweenview :) ---------------------------------------------------------------------------= --- Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay