Turistforeningen / node-s3-uploader

Flexible and efficient resize, rename, and upload images to Amazon S3 disk storage. Uses the official AWS Node SDK for transfer, and ImageMagick for image processing. Support for multiple image versions targets.
https://www.npmjs.com/package/s3-uploader
MIT License
241 stars 54 forks source link

Creating image version without specifying max-width (original size), results in smaller image file size (lesser quality?) than a smaller px image? #122

Closed Eric-Tran closed 7 years ago

Eric-Tran commented 7 years ago

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.

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.

Starefossen commented 7 years ago

Did resolve this issue, @Eric-Tran ?

Eric-Tran commented 7 years ago

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.