-
Notifications
You must be signed in to change notification settings - Fork 275
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
NextImage component doesn't compress images #1355
Comments
@HighProteinFlapjack Thank you for your ticket. As far as I can see you are using JSS 20. |
I think I have the same issue, I'm trying the following example on my local: Your environments:Sitecore Version: Sitecore XMCloud 1.4.254 Hero component:Output |
@achievecreative do you see a difference in size between two images too? |
@art-alexeyenko Yes, webP format has smaller size than original one. |
@HighProteinFlapjack @achievecreativeI I've added a ticket to our internal backlog, we will investigate this issue |
@HighProteinFlapjack per the docs you need to white-list the parameter sets on the server. Or you can temporarily disable Media.RequestProtection.
|
This has been automatically marked as stale because it has not had recent activity. It will be closed if there is no further activity within 30 days. You may add comments or the 'keep' label to prevent it from closing. Thank you for your contributions. |
Description
I used the NextImage component to display an image but saw no compression in the image size, while the native NextJs image component produced a dramatic decrease in image size and also returned images in webp format
Expected behavior
I would have expected NextImage to produce identical results to the native nextjs Image component e.g. image size / type as I understand it is a wrapper around this component that sets its src property .
Steps To Reproduce
Your Environment
Screenshots
The text was updated successfully, but these errors were encountered: