sharp icon indicating copy to clipboard operation
sharp copied to clipboard

Resize jpeg/webp without changing quality

Open midevnull opened this issue 7 years ago • 2 comments

First, thanks for developing this great library Lovell. I was wondring if there is an option to resize an image without changing the quality. sharp(buffer).resize(width).toBuffer() Adding the jpeg function increases the filesize: .jpeg({ quality: 100 }) .metadata() doesnt show the initial quality. Not sure if that is even possible. I just saw that pain.net recognizes the quality.

midevnull avatar Jan 29 '19 12:01 midevnull

Hello, did you see #908?

lovell avatar Jan 29 '19 16:01 lovell

@lovell Thank you very much. Found a solution in the linked issue.

midevnull avatar Jan 29 '19 17:01 midevnull