Closed Eric-Tran closed 7 years ago
Did resolve this issue, @Eric-Tran ?
Yes issue has been resolved, my mistake the original image was actually smaller than the -med version.
On Nov 17, 2016, at 2:34 PM, Hans Kristian Flaatten notifications@github.com wrote:
Did resolve this issue, @Eric-Tran ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
I created an image with different versions, however the original image size (which is larger in px), is a smaller file size than an image version that is smaller in px.
Operating system
Node.js version (
node --version
)ImageMagick version (
identify -version
)s3-uploader version
Steps to reproduce
Resized image smaller than original produces a bigger file size than original image . Create an image size without specifying maxWidth: (i.e retain original px size). Compare that with an image with a smaller maxWidth. Original image is around 1000px.
example:
versions: [{ format: 'png', suffix: '-orig', quality: 100 }, { maxWidth: 600, format: 'png', suffix: '-med', quality: 100 },
This results in the -orig being a smaller filesize than -med.
-orig size ~24kb -med size ~165kb
Expect original to be larger file size since it is a larger image. Same quality settings.