I could have sworn that I saw somewhere that FreeImage has plugin support for Nikon .NEF files, among others. Am I dreaming?
If there is other support, where is it?
You are dreaming :)
However, the support for NEF images is planned for a future release.
Today, you can use dcraw to convert your images to 24-bit ppm and load them with FreeImage. See
using vb vrapper, imgFormat = FIF_RAW
dib = FreeImage_Load(imgFormat, fFileName, RAW_DISPLAY)
It is opening D300s camera raw file for like 5s, while irfanview opens it instantly, furthermore images opened are much darker that those opened with iv.
Any advice on that ?
About the speed, you could use the RAW_PREVIEW flag in order to get the embedded JPEG.
The RAW_DISPLAY flag load the image as 48-bit and convert to 24-bit with a simple bit shifting (that's why the image looks dark). You should use the RAW_DEFAULT load flad to load the image as 48-bit, then use a tone mapping operator to convert the image as 24-bit.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.