FreeImage JXR loading broken due to leaking define
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
freeimage (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1) Ubuntu 18.04.3 LTS
2) libfreeimage-
3) Loading a Jpeg XR file over the api should work, as it is reported as supported.
4) It fails with "unsupported format", because the conversion fails in the libfreeimage library, while the target image is not defined.
In essence, the JXR loading functionality is broken.
In FreeImage.h:132 _WINDOWS_ is defined, leaking over to any other include file.
Injxrlib/
By becoming 64-bit, the GUID is now 4 bytes longer, which are filled then with "random" data.
Undefining "_WINDOWS_" before including "JXRGlue.h" in PluginJXR.cpp should fix the behaviour.
Better would probably to not leak the definition in the first place, but that seems a more involved task.
Find enclosed the code to attempt to load a jpeg-xr, once directly with jxr, and then with the freeimage library.
description: | updated |
Discovered the upstream bug-report: https:/ /sourceforge. net/p/freeimage /bugs/294/