kopaka1822 / ImageViewer

HDR, PFM, DDS, KTX, EXR, PNG, JPG, BMP image viewer and manipulator
MIT License
331 stars 37 forks source link

PFM image with not-a-one scale is not displayed properly. #18

Closed Kri-Ol closed 3 years ago

Kri-Ol commented 3 years ago

Describe the bug

If I generate grey-scale PFM with third parameter being different from 1, image in the viewer won't change

e.g.

Pf 100 100 -1.0 .....

will be displayed the same as

Pf 100 100 -5.0 .....

To Reproduce Make simple PFM grey-scale with scale = 1. Display it. Change scale from -1 to -5. Same display

Expected behavior Display should behave same was as if I multiplied data array by 5.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

kopaka1822 commented 3 years ago

Hello, I fixed this in the last commit. Can you built the new binary yourself or do you want me to supply one for you?

Kri-Ol commented 3 years ago

Would appreciate official build, thank you

kopaka1822 commented 3 years ago

Hey, I drafted a new release: https://github.com/kopaka1822/ImageViewer/releases Your fix should be included, please check it out