-
Notifications
You must be signed in to change notification settings - Fork 18
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
AVIF output is always saved in RGB even input is L #325
Comments
from PIL import Image
import pillow_heif
pillow_heif.register_avif_opener()
a = Image.open("../tests/images/non_heif/L_8__128x128.png")
a.save("test.avif")
b = Image.open("test.avif")
print(b.mode)
b.save("test2.avif")
c = Image.open("test2.avif")
print(c.mode) Output:
Can you post the minimal reproducible code so I can see what the problem is? |
Can you share your code and the input file you are testing it on because in my tests everything is working fine.
|
i am not sure now how to correctly check the bits per pixel value in windows. i feel that irfanview is getting innacurate. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When creating AVIF in L mode, it is always saved in RGB. the mode parameter in save function is not working - when added to force mode the image is not saved.
Steps/Code to Reproduce
Try to save some image which is in L mode.
Expected Results
Image is saved in L mode
Actual Results
no image saved
Versions
The text was updated successfully, but these errors were encountered: