LibrePhotos / librephotos

A self-hosted open source photo management service. This is the repository of the backend.
MIT License
6.97k stars 305 forks source link

AVIF support #70

Open Tachi107 opened 3 years ago

Tachi107 commented 3 years ago

Any plans to support AVIF? libavif can easily convert JPEGs and PNGs in AVIF images, but it is written in C, and I don't know how well it would integrate with LibrePhotos.

derneuere commented 3 years ago

We could use imagecodecs. It uses libavif. Do you want the option to use avif instead of jpegs for thumbnails or do you just want it to be able to read it?

Tachi107 commented 3 years ago

Having the possibility to read AVIF pictures would certainly be nice, but I think that using AVIF as the default image format instead of Jpeg would be ideal, since it occupies less space, supports things like transparency and doesn't have any licensing issues. On the other hand AVIF is probably too young, and using it by default could cause compatibility issues. In my opinion just being able to read AVIF files would be a good start, and maybe you could reconsider the switch later.

derneuere commented 3 years ago

Avif isn't supported by all browser, so we now use webp instead.