Replies: 2 comments
-
It is really weird or I'm missing something really dumb (completely possible) |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late reply, have you figured this out?
I don't think this is caused by imagetools though so I will convert this into a discussion. |
Beta Was this translation helpful? Give feedback.
-
Hi there I've been trying to figure out why avif imports through an srcset isn't working without success.
I've set up an example at https://avif-test-imagetools.netlify.app/, with the code on https://github.com/bronze/avif-test
What is happening is this: element calling external images, i can see the .avif files.A element calling the files directly from the html also works.I can make the transformation to avif in a .js and assign it to an tag also.But if i create the element in the .js the browser will see the fallback jpg and not the avif. And the file is on the server, we can access it if we copy+paste the name.
Making a
Under network, on the inspector, there are 3 .avif files and one .jpg.
Anyone got an idea here?
-cheers
Beta Was this translation helpful? Give feedback.
All reactions