Skip to content

Change Default Variant Format from PNG to WEBP

Created by: 6temes

Use WEBP as the default format for representations

This pull request updates the default_variant_format method in the representable.rb file. Previously, the default image format was PNG. With this change, the default image format is now WEBP.

This change is made to improve the performance of our web pages, as all major browsers support WEBP images, which are generally smaller in size compared to PNG images, without any significant loss in image quality. This will help in faster loading of images and improve the overall user experience.

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

Merge request reports