chartjs-to-image icon indicating copy to clipboard operation
chartjs-to-image copied to clipboard

Add WebP and AVIF support

Open SergeySypalo opened this issue 1 year ago • 2 comments

Hi Typpo, this time is a feature request from me :) Is it possible to add WebP and AVIF file formats support when exporting images?

SergeySypalo avatar Dec 02 '22 17:12 SergeySypalo

Hi @SergeySypalo,

webp is actually supported, although not documented! You can call setFormat('webp')

typpo avatar Dec 02 '22 20:12 typpo

Actually I'm more interested in AVIF, as it offers better compression, and the result is sharper. At least for images I need/tested.

SergeySypalo avatar Dec 02 '22 20:12 SergeySypalo