Quantcast
Channel: arm - openFrameworks
Viewing all articles
Browse latest Browse all 364

FreeImage_GetFileType return FIF_PGM for png files

$
0
0

Selu wrote:

Hi there,

I've been using OF and FreeImage for long time ago and never saw something like this. frowning

I get an iMx6 board and installed openframeworks to run in the framebuffer. Everything is working properly except loading png images that ends in a "terminate called after throwing an instance of 'char const*'" error message.

I sent the result of FreeImage_GetFileType to the output and all PNGs are detected as FIF_PGM.
If I set the first parameter to FIF_PNG it will return 0, which means that the file was not loaded.

I read about PGM format and how can the PNG file being confused with PGM, no sense at all....

I'm cross compiling and I checked multiple times the libraries versions that is being linked, headers, etc... of freeimage and libpng. What can be wrong?!! I'm totally out of ideas....

Thank you in advance.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 364

Trending Articles