I’ve discovered two methods of dealing with image resizing / compression, one by using a Lambda function that’s executed whenever an action is triggered, and second, by resizing it using php’s gd library before uploading it to the server.
Apart from the fees incured from the Lambda function, or the CPU / ram usage when using gd, why would someone use one over the other? Could someone possibly provide examples for each use case?
Bonus question: Are there any other methods of image compression that are good to know?
Currently I’m using PHP gd library to resize images before they go into the bucket and then I have a Lambda function that invokes to generate thumbnails placed in a ‘mirror’ bucket but I’m having a dilemma about keeping it all on one side as to make things more convenient.