From reading up and testing I can see that when you upload an asset (e.g. image) via Contentful UI or via the contentful management SDK, it ‘processes’ it and then makes it available on Cloudfront.
From what I can tell, the resulting image on the Cloudfront is the same image in terms of quality and file size. Most of my editors don’t really understand the need of reducing the size of these assets. I would like to take this out of their hands by reducing the size of the assets on upload with some lossless compression API, similar to https://tinypng.com/developers/reference and storing the resulting file in Cloudfront instead.
I’ve looked through the UI extensions and Contentful Management API but there isn’t much I can do from an asset management point of view. I realise there are ways I can request said image in various formats (webp), crops and sizes on a per image URL basis but I’m looking at filtering the image at the point of upload rather than put all that strain on my various servers delivering the content.
Any suggestions, tips, tools or advice you can give would be greatly appreciated.