Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation.
Other
1.76k
stars
387
forks
source link
Can't write 32 bit depth image with color map to JPEG #604
Because I can't provide the input image, so, I would like to proof by reviewing code.
I debugged into Leptonica and see that it seem the bug.
You can check the following place, the function pixWriteStreamJpeg said that all bit depth is ok
But the following line use function pixRemoveColormap
Hi maintainer, I see the issue when I use the leptonica at the latest version. The issue is: "Can't write 32 bit depth image with color map to JPEG"
Because I can't provide the input image, so, I would like to proof by reviewing code. I debugged into Leptonica and see that it seem the bug. You can check the following place, the function
pixWriteStreamJpeg
said that all bit depth is ok But the following line use functionpixRemoveColormap
https://github.com/DanBloomberg/leptonica/blob/d4ab740f6c0d40fe12ddc15c9ceba1f614711665/src/jpegio.c#L835-L839
The function
pixRemoveColormap
just accept{1,2,4,8} bpp
https://github.com/DanBloomberg/leptonica/blob/d4ab740f6c0d40fe12ddc15c9ceba1f614711665/src/pixconv.c#L354-L357
And the result is the function
pixWriteStreamJpeg
don't write the image to file.