Image resizing Edge Function runs out of memory
Does anyone have any recommendations on how to resize a 20MB image (reduce the total pixels and compress the the file) in an Edge Function?
I'm asking because I created something using ImageMagick wasm but it only works on images that are already less than about 3MB, which isn't too helpful.
If Edge Functions can't do it, I'm going to have to consider a third-party API but the round trip on 20MB images is going to be brutal and was hoping an Edge Function could handle it…
I'm happy to share code but maybe someone knows of a recipe that solves this problem?
TIA
Ted Stresen-Reuter
I'm asking because I created something using ImageMagick wasm but it only works on images that are already less than about 3MB, which isn't too helpful.
If Edge Functions can't do it, I'm going to have to consider a third-party API but the round trip on 20MB images is going to be brutal and was hoping an Edge Function could handle it…
I'm happy to share code but maybe someone knows of a recipe that solves this problem?
TIA
Ted Stresen-Reuter