Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Pillow >= 8.3.0 #229

Open
gyes00205 opened this issue Oct 18, 2022 · 0 comments
Open

Support for Pillow >= 8.3.0 #229

gyes00205 opened this issue Oct 18, 2022 · 0 comments

Comments

@gyes00205
Copy link

I try to test picture as below shown but get a strange result not like the result of issue 49.

Therefore, I try to find the bug of test_vistas_single_gpu.py. In line 320 of test_vistas_single_gpu.py, all R values is contiguous in the list before G and B values.

_PALETTE = ImagePalette.ImagePalette(
    palette=list(_PALETTE[:, 0]) + list(_PALETTE[:, 1]) + list(_PALETTE[:, 2]),
    mode="RGB",
)

But in Pillow >= 8.3.0, the list must consist of all channels for one color followed by the next color (e.g. RGBRGBRGB). We can see the description in Pillow 8.3.x version
Maybe I can contribute the code to check the Pillow version in test_vistas_single_gpu.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant