Bulk optimization for custom folder will try to optimize generated next-gen images

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

Nobody has claimed this yet.

Assessment

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

Research direction

Reproduce the issue through the custom-folder bulk optimization flow: optimize once, repeat it, and inspect the media management page. Trace the code handling repeated bulk optimization and generated next-gen images; done means the second run does not add generated images to media management.

Written by the indexing model from the issue text.

Description

priority: medium severity: moderate type: bug

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

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

Describe the bug
When click imagify all while having custom folder, 1st time we optimize images and create next-gen. after that , if we click again, we will optimize the generated next-gen images

To Reproduce
Steps to reproduce the behavior:

  1. activate imagify
  2. add custom folder containing couple of images and save
  3. In bulk optimization imagify all => wait till completed
  4. repeat step 3 then click media management link beside custom folder=> next-gen images are added to media management page

Expected behavior
A clear and concise description of what you expected to happen.

  • from the 1st imagify all, create the most optimized version of image and next-gen
  • click imagify 2nd time, won't add next-gen images in the media management table

Screenshots
If applicable, add screenshots to help explain your problem.
after 1st imagify all
Screenshot from 2024-03-11 12-58-21

after 2nd imagify all
Screenshot from 2024-03-11 12-57-13

Screenshot from 2024-03-11 12-50-51

Additional context
Add any other context about the problem here.

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

Dominant language
PHP
Stars
82
Forks
31
Avg merge
5d 10h
Merged PRs (30d)
9

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.

More from wp-media/imagify-plugin

All issues in wp-media/imagify-plugin

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.