WordPress / WordPress/performance

Allow for modification or removal of the -jpg suffix added to webp images, generated from jpg files

Open
#545 12 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Plugin] Modern Image Formats [Plugin] Performance Lab [Type] Enhancement
Dominant language
PHP
Stars
461
Forks
165
Avg merge
11h 12m
Merged PRs (30d)
28

Description

Feature Description

As per a user request in the forums allow for modification or removal of the naming structure of webp images that are generated from jpg files. At present when webp files are created from uploaded jpg they include a -jpg suffix.

Example: If I upload myimage.jpg the respective webp version will be titled myimage-jpg.webp

  • Support topic
  • This is the first such report in the WordPress support forums

Update: The below support topics also reference issues or queries regarding the file names that were added:

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

Review the image-generation implementation and the linked support topics to determine where the WebP filename is formed and what customization behavior is required. Done means uploaded JPG files can produce WebP files without the -jpg suffix or with a supported modification, with the behavior covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.