I am using the following line of code to transform a image before uploading it,
ransformation = new Transformation().Quality(DefaultQualityTransformation)
Where: DefaultQualityTransformation = "auto:eco"
The issue is if the file limit is 10mb, and the file is 10.1. The image does not get transformed. But say if it was 9.9mb the size of the file would drastically be reduced.
Is there a way to reduce the file size before uploading?
Please sign in to leave a comment.