Re-saving an image over and over and over again in a lossy format (a format like JPEG that tosses some data each time you save/compress the file) slowly but surely degrades the image. This is called generation loss, and it’s demonstrated beautifully in these almost painful-to-watch YouTube videos.
The videos are created by YouTube user Jon Sneyers, who used a script to save and resave and resave the same image over and over, 500 times. He then turns each resave into a frame of the videos below, the result of which falls somewhere between horrifying and artistic:
“The first frame of this video shows the lossless images, the next frame shows the sizes at the lowest quality of the range,” Jon explains in the video description, “there is a different quality scale for each format; it is chosen to get roughly the same filesize at the lowest quality.”
If you’re more into a stepwise transition that doesn’t go quite as smoothly, Sneyders shared some still frames in a YouTube comment as well.
Here’s the lossless image:
Here it is after 10 generations:
After 50:
After 100:
And after 500:
As you can see, WebP does a terrible job of maintaining its integrity (although the degradation is somehow… beautiful), JPEG holds up surprisingly well, and BPG degrades differently than JPEG, but not necessarily better or worse. Each of these is the result of how a specific format goes about compressing an image.
FLIP, a lossless format, sees no generation loss after the initial compression. You can think of that one as the control.
from PetaPixel http://petapixel.com/2016/04/06/happens-resave-image/
No comments:
Post a Comment