wintercms / wintercms/wn-tinypng-plugin

Add support for WebP

Open
#2 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted Type: Conceptual Enhancement
Dominant language
PHP
Stars
9
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Would be nice if the plugin was extended to support WebP which appears to be a new feature of TinyPNG. This allows WinterCMS developers to be up to date with todays technology! 😄
image
Ideally it would serve automatically .webp if supported, if not a fallback to .png/.jpg (only for Safari? It seems supported since end of 2022 so it still needs the fallback for users that didn't update their OS).

Images would be compressed twice (once like it already is, and once as WebP) doubling the compressions and the price, so it should be optional with a toggle switch in the settings of the plugin

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing the existing plugin settings and the TinyPNG WebP conversion reference, then define the optional toggle, automatic WebP serving, and fallback behavior described in the issue; done means these behaviors work without doubling compression unless enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.