ImageMagick in functions

This topic might provide some insight: Question about storage and rate limits on node.js based Netlify functions - #8 by coronatimemap.com

You might be better off trying to process your images with the build pipeline but as image processing takes a lot of time (or too much time if you have a lot of images) I’d recommend Netlify Large Media or external image processing services.