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

Merged

Conversation

AdityaKantipudi1
Copy link
Contributor

🔗 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:

Sorry, something went wrong.

…ngine with tests
@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.28%. Comparing base (03f631f) to head (78a24c1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1701      +/-   ##
==========================================
+ Coverage   64.25%   64.28%   +0.02%     
==========================================
  Files          79       79              
  Lines        3696     3699       +3     
  Branches      426      426              
==========================================
+ Hits         2375     2378       +3     
  Misses       1296     1296              
  Partials       25       25              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

AdityaKantipudi1 and others added 3 commits February 11, 2025 15:04

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

thank you ❤️

@danielroe danielroe merged commit 2366f74 into nuxt:main Mar 7, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Mar 7, 2025
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.

None yet

3 participants