Home > front end >  Will PNG image lose quality when resized using HTML or an APP
Will PNG image lose quality when resized using HTML or an APP

Time:05-05

For a PNG image 1920x1080, which is better in quality?

<img src="the-png-image.png" width="640">

Using app (e.g. windows photos) to resize it to width 640.

<img src="the-resized-png-image.png">

Which is better in quality in Human's eyes? Will png images resized using app lose quality?

CodePudding user response:

There shouldn't be any difference if you're setting them to the same size in both scenarios.

CodePudding user response:

Try it out and see if you can tell a difference.

If the image has a lot of details, you should be able to tell "the-resized-png-image.png" would look worse than the original. Now, this is assuming my past experience with chrome, the quality may vary from browser to browser due to differences in the way they downscale images.

There is also a possibility of browsers changing the way they downscale images in updates, so it may also vary with browser versions.

Here are other questions that are consistent with my findings:

Doing your own downscaling:

So, to answer your question: Depends on the browser/app.

  • Related