PFM file format support

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
ilteroi
Posts: 1
Joined: Mon May 31, 2010 9:59 am

PFM file format support

Post 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 ...
User avatar
xnview
Author of XnView
Posts: 46253
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: PFM file format support

Post by xnview »

Could you send me some samples?
Pierre.
Renderking
Posts: 3
Joined: Mon Feb 08, 2016 7:50 am

Re: PFM file format support

Post 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 :bug: 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
Attachments
S_TIE-Interceptor-Sample.zip
PFM Sample
(1.31 MiB) Downloaded 78 times
Renderking
Posts: 3
Joined: Mon Feb 08, 2016 7:50 am

Re: PFM file format support

Post 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
Attachments
S_TIE-Interceptor-Sample-HDR.zip
(436.72 KiB) Downloaded 55 times
S_TIE-Interceptor-Sample.png
S_TIE-Interceptor-Sample.png (260.52 KiB) Viewed 1096 times
User avatar
xnview
Author of XnView
Posts: 46253
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: PFM file format support

Post by xnview »

the scaling value in this PFM file is 1
Pierre.
Renderking
Posts: 3
Joined: Mon Feb 08, 2016 7:50 am

Re: PFM file format support

Post 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.
Post Reply