David Tschumperlé

Results 175 comments of David Tschumperlé

This test works for me: ~~~~ #include "CImg.h" using namespace cimg_library; int main() { CImg::save_empty_cimg("test.cimg",1000,1000,1,3); CImg img(500,500,1,2,0); img.rand(0,255); img.save_cimg("test.cimg",0,128,128,0,0); CImg::get_load_cimg("test.cimg").display("test.cimg"); } ~~~~ ![test_cimg](https://user-images.githubusercontent.com/10114565/118492154-096e6b80-b720-11eb-967d-71c3e7367386.jpg)

You have to link your executable against `libX11` and `libpthread`, which means adding `-lX11 -lpthread` to the compilation command line (if you use `g++`). Otherwise, you may want to disable...

Have you tried with `-Os` and `-flto` ?

I'm sorry, but I don't do Python. pycimg is not an "official" binding of CImg. It's pretty cool that it exists, but you may have more success if you ask...

Please report this to the pycimg project. There is nothing I can do here.

Looks definitely like a gcc-8 bug. I've tried compiling G'MIC (https://gmic.eu, a quite big project I'm developing based on CImg), with your provided flags and gcc-9.2.1, and it works flawlessly,...

The `pattern` parameter has always the same meaning. It's a 32bits integer (`unsigned int`) whose bits define the pattern of the drawing. - If all bits are set to `1`,...

I've done this commit : https://github.com/dtschump/CImg/commit/9c1c24d9d7fa743047382d3c0a40e9724ddb987a Could you check if that solves your problem, as intended ? I don't have MSVC right here on my computer.

Humm. These error messages do not help a lot ! I don't know what I could do then :(

https://github.com/dtschump/CImg/commit/237afd12a30d9aecaed9c62704fd91ce060f46da and https://github.com/dtschump/CImg/commit/8a5f0ad446eda69f64a0107a7211cf99ea325020 may fix the issue !