Log in

View Full Version : Lossless Resizing


jay123210599
14th January 2025, 17:24
I have 1920x1080 PNG images. I want to resize them to 640x360 and back without losing quality. Is that possible or no? Can ffmpeg, Shutter Encoder, or ImageMagick do it?

poisondeathray
14th January 2025, 17:38
I have 1920x1080 images. I want to resize them to 640x360 and back without losing quality. Is that possible or no?

Generally not for commonly used rasterized image formats such as png,bmp - because you cannot discard information and get it back


An exception would be some very simple content like 1 color e.g. a 100% black screen would be the same at 640x360 and 1920x1080. You could scale it up or down without losing quality

The other exception would be some vectorized graphic image formats - e.g. logos such as svg, eps, ai
https://en.wikipedia.org/wiki/Vector_graphics

jay123210599
15th January 2025, 01:04
Generally not for commonly used rasterized image formats such as png,bmp - because you cannot discard information and get it back


An exception would be some very simple content like 1 color e.g. a 100% black screen would be the same at 640x360 and 1920x1080. You could scale it up or down without losing quality

The other exception would be some vectorized graphic image formats - e.g. logos such as svg, eps, ai
https://en.wikipedia.org/wiki/Vector_graphics

If I convert my png files to svg, I could resize the output svgs without losing quality?

poisondeathray
15th January 2025, 01:12
If I convert my png files to svg, I could resize the output svgs without losing quality?

It depends on the png contents, but generally no.

Typical content (a "normal" video source) cannot be converted to svg (or vectorized) without losing quality