6

Is it better to resize an image before converting it from png to jpg, or to convert it before resizing it?

Same for cropping instead of resizing (but I guess that cropping before or after makes no diff)

1 Answer 1

7

Resize prior to any lossy compression - this gets you the best quality result for the intended pixel dimensions.

Lossy compression like .jpg save space by calculating relationships and change of pixel arrays, so for best effect, you want to do all resizing in the base non-compressed image, and you'll get better results from the placing of the compressed image if the compression "knows" the final pixel size.

3
  • 2
    so it can be generalized as "do any image modification prior to any lossy compression", right? Commented May 13, 2019 at 17:56
  • 1
    @pedrotester Always. That's the thumbrule.
    – Bluebug
    Commented May 13, 2019 at 18:04
  • 1
    hmm and I suppose it's better to resize only once, and not to resize twice consecutively? example: from 100% to 20% instead of 100% to 50% to 20% Commented May 13, 2019 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.