jterrace / pyssim

A Python module for computing the Structural Similarity Image Metric (SSIM)
MIT License
339 stars 62 forks source link

What image format is supported ? #30

Closed abarre closed 5 years ago

abarre commented 5 years ago

This question that is not related to a bug but more about the limit of the library.

All your examples are using PNG files. Do the algorithm support other format like JPG and WebP ? Is it valid to compare a JPEG image with a WebP image for instance ?

jterrace commented 5 years ago

It'll support whatever the PIL or Pillow library you have installed supports, which is most image formats.