Image Compare By Pixels

python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow
WebP to PNG conversion. No pixel edited.
PNG with 1 pixel edited (1 black dot right above the head).

WebP

  1. I downloaded a 360x360 WebP image from Google PlayStore and named it a.webp
  2. Duplicate a.webp to b.webp
  3. Edit 1 pixel in b.webp in GIMP
2% similarity with 1 pixel change

PNG

  1. Converted a.webp to a.png using ImageMagick
  2. Duplicate a.png to b.png
  3. Edit 1 pixel in b.png
convert a.webp a.png
99% similarity with 1 pixel change

BMP

  1. Converted a.webp to a.bmp using ImageMagick
  2. Duplicate a.bmp to b.bmp
  3. Edit 1 pixel in b.bmp
convert a.webp a.bmp
99% similarity with 1 pixel change

GIF

  1. Converted a.webp to a.gif using ImageMagick
  2. Duplicate a.gif to b.gif
  3. Edit 1 pixel in b.gif
convert a.webp a.gif
99% similarity with 1 pixel change

JPG

  1. Converted a.webp to a.jpg using ImageMagick
  2. Duplicate a.jpg to b.jpg
  3. Edit 1 pixel in b.jpg
  4. Save as 100% quality
convert a.webp a.jpg
87% similarity with 1 pixel change

Conclusion

My favorite file type is PNG although GIF has a smaller file size because GIF looks grainy after the conversion with default settings.

Related articles

Jigsaw Search In Image (version 1)
Needle In Haystack Search (version 2)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin FOO

Kevin FOO

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.