In depends. Both AVIF and WebP are the latest photo formats with advanced compression algorithms. But there is a major restriction. The file formats are not fully compatible with most devices. When you need to resize JPG images for a website, it is an optimal choice.