fdintino / pillow-avif-plugin

A pillow plugin that adds avif support via libavif
BSD 2-Clause "Simplified" License
77 stars 12 forks source link

dpi and bit depth change #45

Closed baqt99 closed 2 months ago

baqt99 commented 3 months ago

when i read an image with 96 dpi, 24 bits then save it, the result is 72 dpi 32 bits

from PIL import Image
import pillow_avif
image = Image.open("img.jpg")

compression_quality = 90  # Example quality level

image.save("output.avif", format="AVIF", quality=compression_quality)
baqt99 commented 2 months ago

it turns out that even if another program is used it does the same things, the colors look a little bit different converting from jpeg to avif, but converting back to jpeg makes them look like the original jpeg