I am attempting to use imagemagick to create chopped and changed pfm's for certain compiler, however imagemagick (or is it ra_ppm.exe) creates pfm files in the wrong endian and the "-endian" function seems to make no difference. Every other program seems to create the files with the opposite endian, however unfortunately the compiler I am guessing only works with one type, and it's the more common one. The header of a pfm file is apparently something like:
Code: Select all
pf
256
256
1
I am using something like this
Code: Select all
convert.exe -endian lsb image.hdr image.pfm
Thanks for any assistance!