Hi. Thanks for the response. Once I figured out what the issue was, I found the FreeImage_ConvertTo24Bits() function to do what I wanted. A load-time flag would be useful to make the life of the user easier by handling this common use case instead of asking the user to do it. This would be similar to the JPEG_GREYSCALE flag. The user CAN make that conversion themselves if they want to, but the flag makes it nicer. Something like FIF_EXPAND_PALETTE or something. A very related issue is how to make...
Hi. I figured out the problem. This image uses a palette, so it really is 8 bits per pixel. So this isn't a bug, but I have a feature request: FreeImage_Load() should be able to take a flag to automatically convert all palettized images to 24bpp. This is a special case, but an extremely common one. Thanks.
I'm attaching a demo program that demos the problem. It does this: $ gcc -o tstimage tstimage.c -lfreeimage && ./tstimage /tmp/tst.png width = 256 height = 256 pitch = 256 bpp = 8
PNGs from openstreetmap tiles always load as grayscale
Thanks for working on this. Also, I didn't know about "set view projection", so that will be helpful in the future also.
splot with 'set view 90,90' draws the xy plane in the wrong place
Inconsistent behavior: "pause mouse close" doesn't work with "x11" terminal, X-forwarding, feeding gnuplot via a pipe
QT terminal can leave zombie processes