I have a method where I load an image from a request, to resize and upload to s3.
Here is the code of the resizing function :
pub fn generate_size(self, ne