bob.io.image issueshttps://gitlab.idiap.ch/bob/bob.io.image/-/issues2018-08-25T17:47:39Zhttps://gitlab.idiap.ch/bob/bob.io.image/-/issues/30Error when loading a PPM image with extra bytes at the end2018-08-25T17:47:39ZPhilip ABBETError when loading a PPM image with extra bytes at the endWhen loading a PPM image that (for unknown reason) has extra bytes after the pixels data, the following error occurs:
*C++ exception caught: 'Something went wrong when reading the image file.'*
Since some tools are able to correctly op...When loading a PPM image that (for unknown reason) has extra bytes after the pixels data, the following error occurs:
*C++ exception caught: 'Something went wrong when reading the image file.'*
Since some tools are able to correctly open that kind of files (ie. Preview on macOS), it might be good to replicate that behavior.
I guess the same thing occurs with a PGM image.André AnjosAndré Anjoshttps://gitlab.idiap.ch/bob/bob.io.image/-/issues/27Non-templated functions implemented in header files need to be inlined2017-10-26T00:54:05ZManuel Günthersiebenkopf@googlemail.comNon-templated functions implemented in header files need to be inlinedWhen including `<bob.io.image/image.h>` in two C++ files, and linking these together, I obtain the linker error:
```
file_a.o: In function `X':
file_a.cpp:(.text+0x7d0): multiple definition of `bob::io::image::write_color_image(blit...When including `<bob.io.image/image.h>` in two C++ files, and linking these together, I obtain the linker error:
```
file_a.o: In function `X':
file_a.cpp:(.text+0x7d0): multiple definition of `bob::io::image::write_color_image(blitz::Array<unsigned char, 3> const&, std::string const&, std::string)'
file_b.cpp:(.text+0x880): first defined here
file_a.cpp.o: In function `X':
file_a.cpp:(.text+0xc40): multiple definition of `bob::io::image::write_gray_image(blitz::Array<unsigned char, 2> const&, std::string const&, std::string)'
file_b.cpp.o:image_bbx_data_layer.cpp:(.text+0xcf0): first defined here
file_a.cpp.o: In function `X':
file_a.cpp:(.text+0x26c0): multiple definition of `bob::io::image::read_gray_image(std::string const&, std::string)'
file_b.o:image_bbx_data_layer.cpp:(.text+0x17c0): first defined here
```
This can be solved by declaring the according functions `inline`.Manuel Günthersiebenkopf@googlemail.comManuel Günthersiebenkopf@googlemail.comhttps://gitlab.idiap.ch/bob/bob.io.image/-/issues/26GIF loading seems to be completely broken2018-08-27T08:19:36ZManuel Günthersiebenkopf@googlemail.comGIF loading seems to be completely brokenWhen reading a GIF image, it seems that all the image is the same color:
```
$ convert bob/io/image/data/grace_hopper.png test.gif
$ ./bin/python
>>> import bob.io.image, numpy
>>> image = bob.io.image.load("test.gif")
>>> numpy.all(imag...When reading a GIF image, it seems that all the image is the same color:
```
$ convert bob/io/image/data/grace_hopper.png test.gif
$ ./bin/python
>>> import bob.io.image, numpy
>>> image = bob.io.image.load("test.gif")
>>> numpy.all(image[0] == image[0][0][0])
True
>>> image2 = bob.io.image.load("bob/io/image/data/grace_hopper.png")
>>> numpy.all(image2[0] == image2[0][0][0])
False
```
I am using the GIF version which is coming with the conda, which is currently `libgif.so.7.0.0`. I have not checked other GIF versions.https://gitlab.idiap.ch/bob/bob.io.image/-/issues/20Unknown ``GifErrorString``2017-10-26T00:54:05ZManuel Günthersiebenkopf@googlemail.comUnknown ``GifErrorString``The function ``GifErrorString`` is only available in giflib version 5, as discussed here: http://lists.openimageio.org/pipermail/oiio-dev-openimageio.org/2013-October/006315.html
On my machine (with giflib version 4.1.6-11) I get the ...The function ``GifErrorString`` is only available in giflib version 5, as discussed here: http://lists.openimageio.org/pipermail/oiio-dev-openimageio.org/2013-October/006315.html
On my machine (with giflib version 4.1.6-11) I get the compilation error:
```
bob.io.image/bob/io/image/cpp/gif.cpp: In function ‘void GifErrorHandler(const char*, int)’:
bob.io.image/bob/io/image/cpp/gif.cpp:284:50: error: ‘GifErrorString’ was not declared in this scope
const char* error_string = GifErrorString(error);
```
@andre.anjos Could you please fix that ASAP? The master branch is not compiling on my machine any more.André AnjosAndré Anjoshttps://gitlab.idiap.ch/bob/bob.io.image/-/issues/12Package is not building on MacOSX2017-10-26T00:54:06ZAndré AnjosPackage is not building on MacOSX*Created by: tiagofrepereira2012*
The master branch of this package is not building on macosx.
Follow below a piece of the log.
The full log (py 2.7) can be found here (https://gitlab.idiap.ch/biometric/bob.nightlies/builds/2970)
...*Created by: tiagofrepereira2012*
The master branch of this package is not building on macosx.
Follow below a piece of the log.
The full log (py 2.7) can be found here (https://gitlab.idiap.ch/biometric/bob.nightlies/builds/2970)
```
/Users/buildbot/work/gitlab-ci/work/gitlab-ci/f6f95b82/0/biometric/bob.nightlies/layers/1/bob.io.image/bob/io/image/include/bob.io.image/config.h:93:30: error: use of undeclared identifier 'GIF_LIB_VERSION'
return Py_BuildValue("s", GIF_LIB_VERSION);
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
While:
Installing.
Processing develop directory '/Users/buildbot/work/gitlab-ci/work/gitlab-ci/f6f95b82/0/biometric/bob.nightlies/layers/1/bob.io.image'.
```https://gitlab.idiap.ch/bob/bob.io.image/-/issues/9Our bob.nightlies are failing on macosx2017-10-26T00:54:06ZAndré AnjosOur bob.nightlies are failing on macosx*Created by: tiagofrepereira2012*
I just pushed the last 10 commits and the CI is failing on MacOSX
https://gitlab.idiap.ch/biometric/bob.nightlies/builds/2473
https://gitlab.idiap.ch/biometric/bob.nightlies/builds/2470*Created by: tiagofrepereira2012*
I just pushed the last 10 commits and the CI is failing on MacOSX
https://gitlab.idiap.ch/biometric/bob.nightlies/builds/2473
https://gitlab.idiap.ch/biometric/bob.nightlies/builds/2470https://gitlab.idiap.ch/bob/bob.io.image/-/issues/2It is not possible to open a TIFF image when the TIFF tag is equal to PHOTOME...2016-08-04T09:17:19ZAndré AnjosIt is not possible to open a TIFF image when the TIFF tag is equal to PHOTOMETRIC_PALETTE*Created by: tiagofrepereira2012*
I'm dealing with a subset of FERET datavase and I wasn't able to open some images with Bob.
The thing is, it is not possible to open a TIFF image when the TIFF tag is different than PHOTOMETRIC_MINIS...*Created by: tiagofrepereira2012*
I'm dealing with a subset of FERET datavase and I wasn't able to open some images with Bob.
The thing is, it is not possible to open a TIFF image when the TIFF tag is different than PHOTOMETRIC_MINISWHITE or PHOTOMETRIC_MINISBLACK