I currently have a Firebase cloud function that takes in images and compresses them into a single output.zip and returns the zip as a response.
I have successfully go