wp-media / wp-media/imagify-plugin

Keep EXIF Data in WebP Images Too if the Option is Enabled in Settings Page

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

Nobody has claimed this yet.

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

Description

Is your feature request related to a problem? Please describe.
When WebP versions are created, the EXIF data is removed whether or not the option to keep EXIF data is enabled in the Imagify plugin settings page.

Describe the solution you'd like
It may be helpful if the WebP images adhered to the Keep all EXIF data from your images setting as the optimized JPG/PNG images do, so the EXIF data could be preserved in WebP versions as well if that is what the user wants.

Additional context
This is a ticket that illustrates the problem this may be creating with colors of WebP images sometimes. I've run a few test optimizations to compare resulting color in various cases:

Here is the Original image
baum-396-flyer-original

Here is the Optimized JPG with EXIFs kept (color same as original)
baum-396-flyer-optimized-with-exif

Here is the Optimized WebP version (color changed fairly substantially)
https://jmp.sh/zbXMrmI

And here is the Optimized JPG when EXIFs are removed (color changed like the WebP version)
baum-396-flyer-optimized-exif-removed

Given that both the WebP version and the optimized JPG version without EXIF are seeing the same color change (and both are missing the EXIF data), it seems the color change in the WebP version may be likely due to missing EXIF data rather than something related to the WebP file type specifically or the process by which we generate them.

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

The issue does not name specific files or tests. Start by tracing WebP creation and the Keep all EXIF data from your images setting, comparing it with optimized JPG/PNG handling. Done when WebP output preserves EXIF when the setting is enabled and matches the documented behavior when it is disabled; verify against the color examples described.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Feature
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.