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
0
votes
0 answers

ImageScience w/ Rails 3

I'm trying to get ImageScience working w/ my rails 3 app. When I try to do require 'image_science' in one of my controllers I get: LoadError in Api::ImagesController#server require on /Users/Kyle/.ruby_inline/Inline_ImageScience_cdab.bundle…
Kyle Decot
  • 20,715
  • 39
  • 142
  • 263
0
votes
0 answers

FreeImage: why does it not work with cairo?

Here is the code: bool bLoaded = false; FreeImage_Initialise(); FIBITMAP* img = FreeImage_Load(FIF_PNG, "imageSave.png", 0); FreeImage_Unload(img); FreeImage_DeInitialise(); int w, h; //cr = cairo_create(image); …
quang le
  • 1
  • 1
0
votes
1 answer

C++ Pixel Comparison and Coloring

I am a Computer Science student and I am stuck on a C++ coursework. I can't seem to find a way to compare pixel of two images and then combine into one. This is the task that I am stuck on at the moment: Part1: Load the two image pairs provided…
Ivo Kostov
  • 49
  • 8
0
votes
1 answer

Runtime error in openframworks code I'm not even using

I'm starting a project using the Aubio library within openFrameworks, so I'm copying in code to my project from Aubio demos, modifting, etc. The Aubio function new_aubio_pitchdetection() works great, but the similar function new_aubio_onset()…
buildsucceeded
  • 4,203
  • 4
  • 34
  • 72
0
votes
1 answer

What is the highest bit depth greyscale image I can export from FreeImage?

As context, I'm working with building a topographic program which needs relatively extreme detail. I do not expect the files to be small, and they do not formally need to be viewed on a monitor, they just need to have very high resolution. I know…
Michael Macha
  • 1,729
  • 1
  • 16
  • 25
0
votes
1 answer

Freeimage FreeImage_ConvertTo24Bits returns null pointer

I think that in previous versions FreeImage_ConvertTo24Bits(FIBITMAP*) work ok in any type of FIBITMAP* but in 3.18 it returns nullptr if the FIBITMAP* is a floating point texture. Is there anything I missed? Anyone has noticed this change too?…
Frank Escobar
  • 368
  • 4
  • 20
0
votes
1 answer

Opengl cube map - different results for freeimage and stb image libs

I'm trying to understand cube maps. I have read the following tutorial: https://learnopengl.com/Advanced-OpenGL/Cubemaps My example program is very similar to the tutorial program but I use freeimage for loading textures. My cube map has inverted y…
Irbis
  • 1,432
  • 1
  • 13
  • 39
0
votes
1 answer

Create device-independent bitmap without allocating memory

This is what I currenty do to load images in my application: auto b = ::FreeImage_Load(type, path.c_str()); void *bits; auto hbmp = CreateDIBSection( dc, FreeImage_GetInfo(bitmap), DIB_RGB_COLORS, &bits, 0, …
liew
  • 69
  • 1
  • 9
0
votes
1 answer

How to set and get value of fipTag

My attempt: fipTag t; t.setType(FIDT_LONG); t.setKey("FrameTime"); long l = 128; t.setValue(&l); supposedly this set the tag value to 128 long However.. const long * lo = static_cast ( t.getValue() ); cout << "t.getValue() " << *lo <<…
WurmD
  • 1,231
  • 5
  • 21
  • 42
0
votes
2 answers

How to write a CMakeLists.txt to use FreeImage precompiled library and header file

The folder structure: Project/ ├── main.cpp └── deps/ └── FreeImage/ ├── FreeImage.lib ├── FreeImage.dll ├── FreeImage.h ├── FreeImagePlus.lib ├── FreeImagePlus.dll └── FreeImagePlus.h The…
WurmD
  • 1,231
  • 5
  • 21
  • 42
0
votes
1 answer

FreeImage wrong image color

I am trying to extract frames from a stream which I create with Gstreamer and trying to save them with FreeImage or QImage ( this one is for testing ). GstMapInfo bufferInfo; GstBuffer *sampleBuffer; GstStructure *capsStruct; …
Grayowl
  • 77
  • 3
  • 12
0
votes
1 answer

freeimage write to pixels

I am trying to write some vertices in a file using freeimage (but I am open to solutions with stb_image also). I am trying to use the code from the Computer Graphics : Principles and Practice 3rd ed, chapter 3 , listing 3.6. I am not sure how to…
George
  • 5,808
  • 15
  • 83
  • 160
0
votes
1 answer

Freeimage.scale aspect ratio

How do you keep the aspect ratio with FreeImage.scale to fit a desired width or height? I know because it will scale proportionally, I will have to pick either width or height and let the other one be calculated. But I dont see a method for zoom or…
SDanks
  • 609
  • 1
  • 7
  • 18
0
votes
0 answers

Not Safari-friendly alpha with Freeimage JP2 export

I'm using Freeimage 3.17.0 .NET to export some images with alpha in Jpeg2000 (JP2) format. When I load the exported images in GIMP, I can see they have an alpha channel, but they don't seem to be compliant with Safari, because Safari in both iOS and…
endavid
  • 1,781
  • 17
  • 42
0
votes
0 answers

Qt app linked against FreeImage library -> crash when reading webp image with Qt imageformats plugins

I am having a problem loading a webp image using the Qt imageformats plugins when the app is also linked against the FreeImage library. It doesn't seem to affect any other format loaded using the Qt imageformats plugins, but every single time I try…
Irigum
  • 175
  • 6