"Not through a web application vulnerability it can't (there is no application code to break!)."
eg. metadata in images can contain executable code
If the server transcodes images, then yes, it should do the transcoding in a throwaway sandbox that outputs some hard-to-misparse intermediate format like a raw pixel array. But S3 doesn't do transcoding.