Memory limitations and image resizing

After deploying my work to a GCP app engine I started noticing that it was having issues with memory limitations. It works well with small images, but hangs on larger images and I see memory errors in the GCP logs. I was going to originally post this in the GCP thread, but realized it is more general and could apply more generally to all deployments.

From the server side perspective, is it possible to resize images as they are received to reduce memory requirements? I know that I could apply transforms when creating a single item data bunch, but I am not sure if that would just use the same amount of memory during the resizing operation.