Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NextGen Image Formats #43

Merged
merged 50 commits into from
Dec 31, 2024
Merged

Conversation

arunshenoy99
Copy link
Member

@arunshenoy99 arunshenoy99 commented Dec 23, 2024

Proposed changes

I just merged all of my open PR's for each story into this branch and opened a combined PR for all the Image Optimization changes so we can see the full picture and review it better.

Epic:

https://jira.newfold.com/browse/PRESS7-73

Stories:

https://jira.newfold.com/browse/PRESS7-86
https://jira.newfold.com/browse/PRESS7-75
https://jira.newfold.com/browse/PRESS7-76
https://jira.newfold.com/browse/PRESS7-74
https://jira.newfold.com/browse/PRESS7-81
https://jira.newfold.com/browse/PRESS7-130
https://jira.newfold.com/browse/PRESS7-131
https://jira.newfold.com/browse/PRESS7-140

CF Worker:

https://github.com/newfold-labs/cf-worker-image-optimization

Videos:

Auto Optimize Newly Uploaded Images:

When enabled, all newly uploaded images will be automatically optimized to WebP.

Auto.Optimize.Uploaded.Images.mp4

Bulk Optimization of Uploaded Images:

When enabled, all images in the media library can be bulk selected and optimized to WebP.

Bulk.Optimization.of.Images.mp4

Prevent Auto Deletion of Original Images:

By default, the original versions of the optimized images are deleted. Users can choose to disable this behavior.

Prevent.Auto.Delete.of.Images.mp4

Lazy Loading of Images:

Images will be lazy-loaded, meaning they will load just in time as they are about to appear in the viewport.

Lazy.Loading.mp4

Prefer WebP When it Exists:

When the original images are automatically deleted, any references to them will be redirected to the new optimized images. If the original images are not deleted and still exist, the WebP versions will be served automatically.

Prefer.WebP.When.Exists.mp4

Mark Optimized Images

Optimized images will be marked as "Optimized" to avoid confusion with their original versions.

image

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

…efer-webp

Image Optimization: Configure .htaccess to Serve WebP Images When Available
…opt-images

Image Optimization: Mark Optimized Images
…-optimization

Image Optimization: Bulk Image Optimization
…images

Image Optimization: Add Lazy Loading Support
…media-upload

Image Optimization: Intercept Media Uploads
@arunshenoy99 arunshenoy99 self-assigned this Dec 23, 2024
@arunshenoy99 arunshenoy99 added the enhancement New feature or request label Dec 23, 2024
Copy link
Contributor

@AleTorrisi AleTorrisi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Branch reviewed and tested

@arunshenoy99 arunshenoy99 changed the base branch from main to release/v2.2.0 December 31, 2024 07:44
@arunshenoy99 arunshenoy99 merged commit 565acae into release/v2.2.0 Dec 31, 2024
1 check passed
@arunshenoy99 arunshenoy99 deleted the enhance/PRESS7-73-next-gen-images branch December 31, 2024 07:53
@arunshenoy99 arunshenoy99 mentioned this pull request Dec 31, 2024
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants