I use the following code to resize image
addEventListener('fetch', function (event) {
event.respondWith(handleRequest(event.request))
});
async function handleRequest(request) {
let options = {
cacheEverything: true,
cf: {
image: {
width: 100,
height: 100
}
}
}
let url = "https://resizer.neuraloom.dev/media/backgrounds/defaults/video/previews/water-waves-cycled.webp"
return fetch(url, options)
}
And get this error message
ERROR 9516: Could not resize the image: error during decoding: Error while decoding WebP image. The file may be incomplete or damaged
While webp image look valid!
Is this probably a Cloudflare bug?