TriliumNext / Notes

Build your personal knowledge base with TriliumNext Notes
GNU Affero General Public License v3.0
668 stars 31 forks source link

(Feature request) AVIF image compression support #319

Open CrO2Cl2 opened 1 month ago

CrO2Cl2 commented 1 month ago

Describe feature

It would be nice to add AVIF image compression as an option instead of JPEG, as it has no apparent downside to JPEG (atleast that I know), and JPEG is getting a bit old. here is a resource on the performance of AVIF from google https://storage.googleapis.com/avif-comparison/index.html

Additional Information

No response

eliandoran commented 1 week ago

@CrO2Cl2 , the only challenge I see here is that we are using JIMP to compress the images which does not appear to have AVIF support.

Any recommendations on a library capable to do so?

The benefit (and downside at the same time) of JIMP is that it is pure JavaScript with no native dependencies. This makes the code easily cross-platform but also offers limited functionality and performance.