Page 1 of 1
PFM file format support
Posted: Mon May 31, 2010 10:06 am
by ilteroi
hello everybody!
does XnView support pfm files?
(
http://netpbm.sourceforge.net/doc/pfm.html)
.pfm is not listed officially, but i do get a thumbnail.
on the other hand there is no preview and double-clicking
gives me an error because windows thinks it's a
postscript font ...
i realize this is probably not a very widely used format,
but it's the only halfway standardized way to store float images.
(apart from openexr, which is way too complicated)
since the thumbnail works, i'm kind of hoping the problem
comes simply from the confusion with the "other" pfm format for fonts.
is there a way to fix this?
thank you!
edit: i can provide an example image if it helps ...
Re: PFM file format support
Posted: Mon May 31, 2010 12:44 pm
by xnview
Could you send me some samples?
Re: PFM file format support
Posted: Mon Feb 08, 2016 8:36 am
by Renderking
Hi!
I just realized that (suddenly) PFM format is supported and I'm extremly happy about it.
However, the format my application creates is vertically flipped.
Question is, is this a

or is my picture upside down?
I've attached a small sample file and just realized that XnView is not properly loading it when I double click the file, as there is another file with exact the same name already open.
I know that I use the option to not load the same file twice, but as the file comes from a different location and has a different size and creation date I would prefer to have it loaded still.
That would be useful if a file is externally overwritten and is automatically opened with the associated application (in this case XnView). Otherwise it always requires a manual reload.
So it would be great if XnView would consider the files location, size and creation date (and maybe other properties as well) to determine if it is really the same file which is already open.
As a additional feature wish it would be great if XnView could determine automatically if a image is linear (gamma 1.0) or already gamma corrected.
For people who work a lot with both types of images it is very inconvenient to always manually adjust the gamma. Also a simple tool bar button to set the viewer temporary to gamma 2.2 would be great.
Greetings,
Jan
Re: PFM file format support
Posted: Mon Feb 08, 2016 8:52 am
by Renderking
I just checked the PFM file with Natron (free compositing software like Nuke) and there the image is correct.
I also realized that the color representation in Natron is correct as in my exporting application.
In XnView the image is too dark even I set a Gamma of 2.2.
It looks like a wrong color space is used.
I exported the image also as HDR from my application and this can't even be opend in XnView, but any other graphic tool.
I've attached the HDR and a reference PNG.
Greetings,
Jan
Re: PFM file format support
Posted: Mon Feb 08, 2016 1:45 pm
by xnview
the scaling value in this PFM file is 1
Re: PFM file format support
Posted: Mon Feb 08, 2016 2:05 pm
by Renderking
Hmmm, ok.
As I said, Natron is displaying it instantly correct.
The Gamma Problem seems to have been a problem of my output application.
After I fixed that the regular Gamma 2.2 give the expected result.