wp-media / wp-media/imagify-plugin

AVif images generated and served to thumbnail image althought it is > original image

Open
#843 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

AVIF priority: low severity: major type: bug
Dominant language
PHP
Stars
82
Forks
31
Avg merge
5d 10h
Merged PRs (30d)
9

Description

Before submitting an issue please check that you’ve completed the following steps:

  • Made sure you’re on the latest version=> 2.2
  • Used the search feature to ensure that the bug hasn’t been reported before

Describe the bug
avif version is created for thumbnails although it is > than original image

To Reproduce
Steps to reproduce the behavior:

  1. enable avif

  2. upload this image
    EpicFriday2 (1)

  3. check uploads folder and media library => delete next-gen link displayed (shouldn't it be displayed when all next-gen are created?) , avif created to thumbnail images

Expected behavior
same as webP
avif which is > original image and thumbnail isnot served on FE

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

  • while webP is enabled, no webP is created on trunk
  • test page where avif is served with display image http://mai.rocketlabsqa.ovh/bigavif/
  • if we click reoptimize using lossless, it will work fine and won't generate avif so the problem mainly when the image is already optimized

Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming

Contributor guide

No contributing guide indexed for this repository

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

Start by enabling AVIF and reproducing the issue with the linked image, then inspect the uploads folder and Media Library for generated thumbnail files and the next-gen link. Compare the behavior with WebP and with reoptimization using lossless; done means oversized AVIF thumbnails are not generated or served on the frontend, and the next-gen link behavior is correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
performance, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.