fdintino / pillow-avif-plugin

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

avif format has larger size (in KB) than jpeg file. Get return values of encode instead save to file #4

Closed vanchung1995 closed 2 years ago

vanchung1995 commented 2 years ago

I have 2 problems as follow: First, I used this code to encode image to avif format

Screenshot from 2021-09-08 16-25-14

Origin image has size is 12.2KB but avif image has 29.7KB. The origin image is:

c58755e537a7def987b6

Second, How to get return value instead of save image to disk? Thanks so much

vsuvarna commented 2 years ago

I have this issue as well. In every instance the avif was larger than the original jpeg.

Sharing a screenshot of avifs vs jpegs: image