You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting "Internal Server error" when trying to convert larger images to avif format.
I can understand that the memory might hit the roof at some point, but then I found this in my Lambda logg saying avif is not among the supported filetypes.. Is that just a text update missing or is it not yet fully supported? The Sharp.js library has avif as an output format, so I was counting on it to work.
2021-03-18T07:15:48.654Z 7031ea41-23f3-45ee-b01e-b10b90d39bc3 ERROR {
status: 400,
code: 'RequestTypeError',
message: 'The type of request you are making could not be processed. Please ensure that your original image is of a supported file type (jpg, png, tiff, webp, svg) and that your image request is provided in the correct syntax. Refer to the documentation for additional guidance on forming image requests.'
}
It works when I convert smaller images like 800x800px but when trying to do 1600x1600 it returns with "Internal server error"
The same operation works fine for larger images with the webp format, so I'm not sure if avif conversion takes alot more memory or if there is something else going on.
Is there anything more I can do about it?
The text was updated successfully, but these errors were encountered:
Sorry, I realized that the message was for original image input. But still, the avif conversion is really slow compared to other formats. Can I do anything about that?
Hi @simon-cordts , sorry for the late response. Unfortunately, avif conversion is slow, and also can be resource intensive. This is an issue with the sharp library and with avif conversion in general compared to other formats. The sharp library appears to currently be looking into improving the performance. lovell/sharp#2597
One option you can try is adding the speed option for avif, this can speed up the conversion, but will also increase CPU and Memory consumption. https://sharp.pixelplumbing.com/api-output#avif
I'm getting "Internal Server error" when trying to convert larger images to avif format.
I can understand that the memory might hit the roof at some point, but then I found this in my Lambda logg saying avif is not among the supported filetypes.. Is that just a text update missing or is it not yet fully supported? The Sharp.js library has avif as an output format, so I was counting on it to work.
It works when I convert smaller images like 800x800px but when trying to do 1600x1600 it returns with "Internal server error"
The same operation works fine for larger images with the webp format, so I'm not sure if avif conversion takes alot more memory or if there is something else going on.
Is there anything more I can do about it?
The text was updated successfully, but these errors were encountered: