Questions tagged [freeimage]

"FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications."

FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications. FreeImage is easy to use, fast, threading-safe, compatible with all 32-bit or 64-bit versions of Windows, and cross-platform (works both with Linux and Mac OS X).

FreeImage is usable in many languages including C, C++, VB, C#, Delphi, Java and also in common scripting languages such as Perl, Python, PHP, TCL or Ruby.

175 questions
1
vote
1 answer

Make an image progressive and lossless with .NET

I need a DLL, or .NET code without an exe file, to make a progressive lossless jpeg (.jpg, not JPEG 2000 or JPEG-LS that are not supported in several browsers) because I'm using a shared hosting where I can't execute .exe files. I'm using freeImage…
1
vote
1 answer

FreeImage_Load Memory Leak

Valgrind is giving me a report of some memory leaks from a texture loading method I have. I have traced it back to one method, but it seems to be a leak in the FreeImage library itself? (The rest of the memory leaks are all from FreeImage_Load too,…
rilott
  • 13
  • 5
1
vote
3 answers

Building & Linking FreeImage with Visual Studio Express 2013

I'm having a lot of trouble linking my project with FreeImage library with VSE 2013 I've followed this answer for VS2010 to no avail: Linking FreeImage as a static library in VS2010? I am getting LNK2019 errors when calling FreeImage functions. I've…
1
vote
2 answers

loading texture from bitmap

It appears that i am loading the image wrong. The image appears all scrambled. What am i doing wrong here? int DrawGLScene(GLvoid) // Here's Where We Do All The Drawing { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear Screen And…
BigBug
  • 6,202
  • 23
  • 87
  • 138
1
vote
1 answer

freeimage loading png with transparency c++

I've loaded a PNG image into my scene. While the image itself loads correctly (what I want to be displayed), the problem I'm having is with the transparency around the image. Where there should be transparency, there is white and black blobs filling…
user868935
1
vote
1 answer

FreeImage reports image color types wrong

I have the following code to load textures. PackageTexture AssetImporter::ProcessTexture(const boost::filesystem::path& assetPath, const TextureType textureType) { PackageTexture texture; const std::string filename =…
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
1
vote
1 answer

OpenGL FreeImage Texture Loading Error

Currently, my rendering works except for the textures rendering totally black. I am getting the error 1380, or GL_INVALID_ENUM, right after calling glTexture2D in this segment of code. I have tried everything that I can think of, but the error will…
1
vote
1 answer

FreeImage: Pixel data accessed by FreeImage_GetBits is not correct (data + size)

I'm using the FreeImage 3.15.4 library to analyze PNG images. I'm basically trying to build a simple data structure of consisting of a palette of all colors as well as an array version of the image per-pixel data consisting of indexes into the…
8bitcartridge
  • 1,629
  • 6
  • 25
  • 38
1
vote
1 answer

simple freeimage with opengl example

can someone give a simple example with freeimage(with opengl) and glfw3 ? when using image er("io.png"); er->gen(); only blackscree is rendered code for the program class image { public: FREE_IMAGE_FORMAT format; FIBITMAP…
Sam
  • 41
  • 1
  • 6
1
vote
2 answers

How to use FreeImage.NET in a x64 targeting project (AnyCpu)?

I'm trying to use the FreeImage .NET wrapper in my project, my ptoject targets AnyCPU and the dll wrapper will not work under this, it will only works if I target x86 machine. When I try to load a file using the wrapper targeting AnyCPU or X64 it…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
1
vote
1 answer

FreeImage.dll compiled for Windows CE?

I need to process data for a jpeg200 to display on a CE5/ARM4VI device, so I'm attempting to compile FreeImage.dll using VS2008 and the CE5 SDK (http://www.microsoft.com/en-us/download/details.aspx?id=17310) I'm not having much luck getting…
alexsd
  • 113
  • 1
  • 1
  • 12
1
vote
1 answer

FreeImage include in c

Is there any way to include http://freeimage.sourceforge.net/index.html in my c test program without first installing the library? It fails to compile because of some memset.. Here is my C code. Is there any way to make it work? Please try compiling…
magnumns
  • 33
  • 4
1
vote
0 answers

Free image RGB and BGR

I'm using FreeImage to load a jpeg and a tiff. The jpeg is 24-bit (8 bpp). The tiff is 48-bit (16 bpp). Problem is, FreeImage loads the jpeg as BGR, and the tiff as RGB. How can I distinguish between the 2 so I can render it to the screen properly?
Josh
  • 6,046
  • 11
  • 52
  • 83
1
vote
2 answers

load tiff using FreeImage

I tried this code with FreeImage to load my tif, and i get no error, but also no output. It works just fine if the input is a jpg. My tiff input is 16-bit greyscale. public void OpenRotateSave() { // load image, 16-bit tif …
DanG
  • 306
  • 7
  • 15
1
vote
1 answer

Get FreeImage pixel data format?

This is a simple question, but I can't seem to find the answer anywhere in the documentation. I know FreeImage supports 1, 4, 8, 16, 24, and 32+ bit images. But besides that, the documentation mentions that 16 bit images can be in either 555 or 565…
Azmisov
  • 6,493
  • 7
  • 53
  • 70