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
2
votes
1 answer

#include not found

I have compiled FreeImage from source and installed it. When I run sudo make install in installs the following files on my system /usr/local/include/FreeImage.h /usr/local/lib/libfreeimage-3.10.0.dylib /usr/local/lib/libfreeimage.a However in my…
Brock Woolf
  • 46,656
  • 50
  • 121
  • 144
2
votes
1 answer

FreeImage - read from base64-encoded char*

I have a base64-encoded string (char[]) that represents a PNG image. I want to create a FIBITMAP from that string - what's the easiest way to achieve this?
Gilad
  • 643
  • 1
  • 7
  • 20
2
votes
2 answers

enthought mahotas.imread cannot find freeimage

I'm new to python and it was recommended that I use Canopy. I'm trying to follow along with this tutorial, but I get stuck at the mahotas.imread line. I get an error saying that ends with this: Full error was: mahotas.freeimage: could not find…
ramesesjd
  • 181
  • 1
  • 11
2
votes
2 answers

FreeImage.LoadFromStream fails for a CR2 file

The following code illustrates the problem I am faced with. If I load a CR2 file with var format = FREE_IMAGE_FORMAT.FIF_RAW; retVal = FreeImage.LoadBitmap("AJ2A1447.cr2", ref format); then I successfully load the RAW file. If I use something…
Lars Nielsen
  • 365
  • 1
  • 2
  • 14
2
votes
0 answers

Cinder + FreeImage + XCode

I am working on a project that uses Cinder for graphics, and for image loading, we are using FreeImage mainly for loading HDR images. It is all working fine under windows, but now I am trying to build an OSX version I am hitting a snag. First I…
DaleyPaley
  • 201
  • 2
  • 11
2
votes
1 answer

Create fipImage* from unsigned char*(freeimage)?

unsigned char * image_data; int bytes; // size format: RGBA , UNSIGNED_BYTE. (opengl-glGetTexImage()): How can i create fipImage* from this data? C++. unsigned char * image_data; int w = 1000; int h = 1000; this function write to image_data…
manking
  • 396
  • 1
  • 6
  • 21
2
votes
1 answer

Loading images with transparency under FreeImage

I am successfully using the cool FreeImage library to load images in various formats. Among these, gif and png with transparency information. After loading the images, I convert them to 32bpp using FreeImage_ConvertToRawBits. With my png images,…
user1196549
2
votes
1 answer

How to use FreeImage_Unload(), and don't lose the image data

I have a class that looks like the following: class myTexture { public: myTexture(); ~myTexture(); unsigned char * data; void loadFile(string file) { FREE_IMAGE_FORMAT fif = FIF_UNKNOWN; …
JohnnyAce
  • 3,569
  • 9
  • 37
  • 59
1
vote
1 answer

Convert floating point RGBA bitmap to standard Dotnet Bitmap

I'm trying to use the FreeImage.Net library to open the image and convert it to a standard bitmap, but either there must be a step I'm missing, or FreeImage simply can not convert floating point RGBA to 32BPP RGBA: FreeImageBitmap fib = new…
Rotem
  • 21,452
  • 6
  • 62
  • 109
1
vote
0 answers

Open images in .cine file with Python module imageio

Using a Phantom high speed camera, the software saves an array of images in the '.cine' file format. This format is supported by imageio in python according to the docs. So, I installed the FreeImage backend as described elsewhere and tried to load…
Adriaan
  • 189
  • 1
  • 8
1
vote
1 answer

Memory leak while converting images with FreeImage.Net

When loading the image with the nuget package, (FreeImage 3.18.0.0) it does not unload memory even if '''dib.SetNull()''' was set. var dib = FreeImage.Load(FREE_IMAGE_FORMAT.FIF_PNG,…
Tib Schott
  • 94
  • 1
  • 9
1
vote
1 answer

convert pdf JBIG2Decode filter to image c#

I want to extract all images from pdf, i use iTextSharp to extract images , then i use FreeImageAPI to get image from pdf byte[] image, this is part of the code: public class ImageExtractor : IRenderListener { .... public PdfReader…
Fath Bakri
  • 161
  • 1
  • 12
1
vote
1 answer

Strange segfault when calling FreeImage_GetPixelColor()

I've been working on some image compression C code with the FreeImage library. After having mostly debugged the image compression code, my program now segfaults in the FreeImage library : Program received signal SIGSEGV, Segmentation…
jdb2
  • 101
  • 6
1
vote
0 answers

Not able to create multilayered tiff image using FreeImage

Been trying for 2 days now without any luck. My goal is to take 2 arrays of data that we normally create 2 exr files from, and create a multilayered/multipage TIFF file (FreeImage only support multipage for tif, gif and ico, and we need this to work…
chikuba
  • 4,229
  • 6
  • 43
  • 75
1
vote
2 answers

Help changing DPI in a TIFF file with JPEG compression

I have a Tiff file that comes from a scanner. It has a resolution of 300 dpi to start with. But later I need to change it to a different value, say 100. What's the best way to do this without losing the initial compression and color depth? I…
Alexandru Pupsa
  • 1,798
  • 4
  • 21
  • 40