Discussion:
Portable any map format.
p***@public.gmane.org
2011-03-23 08:03:07 UTC
Permalink
Hello gweenview list readers.

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 ?

Thank you for your reading.

Paul.

P.S. : could you cc my address for reply please ?
Aurélien Gâteau
2011-05-17 09:22:56 UTC
Permalink
Post by p***@public.gmane.org
Hello gweenview list readers.
Hi Paul,

Sorry for the very late answer.
Post by p***@public.gmane.org
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élien

PS: It is spelled Gwenview, not Gweenview :)

Loading...