When uploading new images to a product in Magento 2, it is not only decreasing the dimensions of the image, but it's increasing the image file size:
Image Details Before Upload
- Dimensions: 1185 × 1580 px
- File Size: 446 KB
After Upload
Can anybody explain why this is happening? I accept that some data may be added to the image by Magento, but I don't understand why it has been resized? Is there anywhere this can be changed?
EDIT
I've now discovered that the image dimensions have been set in vendor/magento/framework/File/Uploader.php
Next is to find the best way to change these values, I found this related post: Magento 2 change max image height and width of image uploader in Admin?
I still don't know why these dimensions have been imposed on users on M2. nor why the file size more than doubles in size!