Currently we're using img.decode when available
, but it seems like if we have many NuxtImg created at the same time, loading somewhat large images (my test setup is 10x ~1MB images), some
image.decode() will fail with
EncodingError: The source image cannot be decoded., it is also silent and does not logged to console by default if we don't add
@error handler, leaving the images stuck in
placeholder state if we do use placeholder.
Currently we're using
img.decodewhen availableimage/src/runtime/components/NuxtImg.vue
Line 152 in 67b40ac
image.decode()will fail withEncodingError: The source image cannot be decoded., it is also silent and does not logged to console by default if we don't add@errorhandler, leaving the images stuck inplaceholderstate if we do use placeholder.