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
10
votes
2 answers

How do I load textures to OpenGL using FreeImage library?

I'm learning OpenGL in C++ using NeHe tutorials, but I'm trying to do them with FreeImage library, instead of Glaux or SOIL. The good point I see in using FreeImage is thar it's last update was in October last year, while SOIL hasn't been updated in…
Razican
  • 697
  • 2
  • 10
  • 16
9
votes
4 answers

Lightweight command-line image resizer?

I'm looking for an image resizer / thumbnailer that is lightweight and efficient. Something that does a good job with all image types, but most importantly jpeg and png. I've looked into ImageMagick and GraphicsMagick, but they are too heavy. This…
grourk
  • 661
  • 8
  • 12
9
votes
1 answer

Linking FreeImage as a static library in VS2010?

I need a image library and I've been looking into FreeImage, http://freeimage.sourceforge.net/. I want to link it statically with my application. I have tried downloading the binaries and link it with, but I get 2019 linker errors when I try to call…
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
8
votes
5 answers

How to compile C/C++ application statically with FreeImage library in Linux (Ubuntu)?

I am following this example. However, I want to compile a static binary for the given toy example code. Normally, I use -static during compilation but here it gives an error message. The compile command which works fine: g++ freeimagetest.cpp -o…
tod
  • 1,539
  • 4
  • 17
  • 43
8
votes
1 answer

imageio: How to increase quality of output gifs?

I have a list of .png (PIL) images I want to string together into an animated gif To do this, I am currently using the imageio library However, I cannot find a way to do this to produce good quality gifs As far as I know, there are two types of…
ning
  • 1,823
  • 1
  • 19
  • 25
7
votes
1 answer

Use external DLL in cmake build

I'm working on the cmake scripts for my project and I've run into a problem: My project uses a 3rd party library (FreeImage), which has its own Makefile-based build system. I can build FreeImage just fine by simply running "make" (I'm using…
sidewinderguy
  • 2,394
  • 4
  • 24
  • 24
6
votes
2 answers

Typedef and enum with same name?

In the library FreeImagePlus, in FreeImage.h, there is a funny #define which seems to create a typedef and an enum with the same name: #define FI_ENUM(x) typedef int x; enum x This is expanded by the preprocessor to code like: typedef int…
sleske
  • 81,358
  • 34
  • 189
  • 227
6
votes
4 answers

Lossless optimization of JPEG with FreeImage

There are several tools to optimize a JPEG without sacrificing quality, such as jpegtran.exe and Smush.it. I've been looking for a way to do it through code (preferably in .NET) and I'm currently settled on FreeImage but I'm not getting the result I…
John-Philip
  • 617
  • 9
  • 20
5
votes
1 answer

Android NDK linker error 'Undefined reference to std::ios_base' when using FreeImage

I am trying to statically link against the open frameworks build of libfreeimage.a for the Android NDK (using the native-activity sample as a template). When I compile and link my project I get a lot of linker errors along the lines…
Mike
  • 111
  • 1
  • 1
  • 5
5
votes
1 answer

How to convert TIFF to JPEG?

I am trying to convert a TIFF file to JPEG using FreeImage. The problem is that FreeIamge.SaveToStream doesn't actually do anything. Even after the call, stream has a Length, Capacity and Position of 0. This is my code: using (var stream = new…
Daniel Hilgarth
  • 171,043
  • 40
  • 335
  • 443
5
votes
1 answer

TIFF with JPEG-compression much larger than original JPEG

I am trying to convert JPEGs to TIFFs with JPEG-compression using FreeImage.Net and C#. This works fine, however, for low-quality JPGES the TIFF-files are a lot larger than the original. I assume the TIFF-size does not depend on the original…
marsze
  • 15,079
  • 5
  • 45
  • 61
5
votes
1 answer

Using Freeimage api

I'm trying to use freeimage to resize iamges and amke sure they're still in cmyk. however i keep getting stopped at the most basic steps of using freeimage, and i can't find any answers or similar questions about this issue. i donwloaded the…
KristianMedK
  • 1,659
  • 6
  • 24
  • 52
4
votes
2 answers

Retrieving image data from memory

I'm using the FreeImage Library to handle loading images and passing them to OpenGL. Currently, I have support for reading an image from a file. However, I'd like to extend this to being able to read from a variable for the purpose of game content…
MGZero
  • 5,812
  • 5
  • 29
  • 46
4
votes
1 answer

What libraries are available for manipulating super large images in .Net

I have some really large files for example 320 MB tif file with 14000 X 9000 pixels. The operations I need to perform are basically scaling the images to get smaller versions of it and breaking the image into tiles. My code works fine with small…
tpower
  • 56,100
  • 19
  • 68
  • 100
4
votes
1 answer

Using FreeImage with Qt

I have a piece of C++/Qt code where I want to load images using the FreeImage library (http://freeimage.sourceforge.net/) and store the final result in a QImage. I know that Qt can load a bunch of image formats directly, but I want to be able to…
Irigum
  • 175
  • 6
1
2 3
11 12