I have problem with images bit depth. Does anybody can help or give some hint how to change bit depth of image from 32 bit to 24 bit or any other to 24 bit.
This is my code but this code convert images to 8 bit.
from PIL import Image
img=Image.open('iamge.png')
i=img.convert("P", palette=Image.Palette.ADAPTIVE, colors=8)
i.save('image.PNG')