Closed stefan6419846 closed 5 months ago
@stefan6419846 I can't (anymore ?) reproduce this issue : the image is red colored . Can you confirm and close it if so ?
Yes, this seems to have indeed been fixed in the meantime. The top-down representation is unrelated to this case.
The top-down representation is unrelated to this case.
There is no issue about the top-down : the image is like this and is just flipped in the page
Yes, no worries - this has not been part of the ticket anyway ;)
however closing this issue lower the number of open issues below 75!🎉🎉🎉🎉
Some images seem to be extracted with the wrong colors. Apparently the custom palette is not considered in these cases. The final byte string from
apparently gets ignored, as
img.putpalette(color_space[-1])
will yield correct colors (red instead of the currenty gray returned by pypdf).Note: This has been originally reported as (2) in https://github.com/py-pdf/pypdf/issues/2303#issuecomment-1823199023, but due to being a separate issue, I just isolated it.
Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
The PDF file is the same as in https://github.com/py-pdf/pypdf/issues/2303#issue-2002452594, although it requires some additional work due to the EOD issue there.