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

feat: add new modifiers for imageengine with tests #1701

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AdityaKantipudi1
Copy link

πŸ”— Linked issue

N/A - Small enhancement adding official ImageEngine directives

❓ Type of change

  • πŸ“– Documentation
  • 🐞 Bug fix
  • πŸ‘Œ Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

πŸ“š Description

Added support for additional ImageEngine directives(modifiers) to enhance image optimization capabilities:

  1. maxDpr directive: Controls maximum device pixel ratio for responsive images
  2. download directive: Enables download behavior for images
  3. productletterbox fit option: Optimizes product image display with background and tolerance settings

All changes are documented in the ImageEngine provider tests with comprehensive test cases covering each new directive.

References:

@codecov-commenter
Copy link

codecov-commenter commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 64.34%. Comparing base (9c8842e) to head (e5f12a0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1701      +/-   ##
==========================================
+ Coverage   64.31%   64.34%   +0.02%     
==========================================
  Files          79       79              
  Lines        3688     3691       +3     
  Branches      424      424              
==========================================
+ Hits         2372     2375       +3     
  Misses       1288     1288              
  Partials       28       28              

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants