Describe the problem to be solved
AVIF files currently do not display preview images, and are stretched when opened (they embed as an object instead of an img):
Describe the solution you would like
AVIF has baseline browser support since 2024 - it looks like the only thing stopping them from displaying properly is the image size calculation. The image-size library should be updated - it's currently on an 8 year old version (0.6.3) that is missing AVIF support. The @types/image-size package can also be removed with this since the updated library has built-in types.
Describe the problem to be solved
AVIF files currently do not display preview images, and are stretched when opened (they embed as an
objectinstead of animg):Describe the solution you would like
AVIF has baseline browser support since 2024 - it looks like the only thing stopping them from displaying properly is the image size calculation. The
image-sizelibrary should be updated - it's currently on an 8 year old version (0.6.3) that is missing AVIF support. The@types/image-sizepackage can also be removed with this since the updated library has built-in types.