-
Bug
-
Resolution: Unresolved
-
P3
-
8, 11, 14
-
x86_64
-
linux
ADDITIONAL SYSTEM INFORMATION :
Not operating system related
A DESCRIPTION OF THE PROBLEM :
In the class com.sun.imageio.plugins.bmp.BMPImageWriter, the encodeRLE4 function is not working as expected.
The line 1105 :
if ( !isEven((int)Math.ceil((absVal-1)/2)) )
should be :
if ( !isEven((int)Math.ceil((absVal-1)/(double)2)) ) {
Same for line 1241.
The bug causes output artifacts on certain images.
CUSTOMER SUBMITTED WORKAROUND :
Copy the BMPImageWriter class and fix the code to get it working.
FREQUENCY : always
Not operating system related
A DESCRIPTION OF THE PROBLEM :
In the class com.sun.imageio.plugins.bmp.BMPImageWriter, the encodeRLE4 function is not working as expected.
The line 1105 :
if ( !isEven((int)Math.ceil((absVal-1)/2)) )
should be :
if ( !isEven((int)Math.ceil((absVal-1)/(double)2)) ) {
Same for line 1241.
The bug causes output artifacts on certain images.
CUSTOMER SUBMITTED WORKAROUND :
Copy the BMPImageWriter class and fix the code to get it working.
FREQUENCY : always