Hi Nick, it depends on the type of image but mostly they are already pretty well compressed. Anyhow, search for zip on the appstore and you’ll find several options for compressing files.
Have a look at https://stackoverflow.com/questions/44565500/how-can-i-compress-images-using-java to get some ideas on how to implement a java action to compress the files.