-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Removing cropping setting for picture results in bad picture parameters in URL #934
Comments
This is related to caching. Publishing the page should fix your problem. But we should address this. I.e. by adding the essence settings to the cache key. |
I tried publishing the page. Does not solve the issue. Also in the preview frame the picture can not be rendered. Even swapping the picture and using another one from the library will not help rendering the picture. |
Yeah. Because the content gets cached in the |
@robinboening did overriding the |
I just tried overwriting the partial and removed the My guess is: The issue might be related with the remaining cropping information in the database. I have this feeling because overwriting fixed the issue with those pictures I never cropped before, but for the remaining pictures I still have cropping information in the database which are still used in the url. |
It was indeed the remaining cropping information in the database. We found a good solution for that. I will come up with a PR, hopefully today. |
I just revisited this bug on latest I think the proposed change is right to do, as disabling cropping by passing crop: false should not crop the image at all. The next mayor version 4.0 would enable us to do so. |
Added a fix for this bug in #1321 |
Given:
Element with a picture content and
crop: true
setting. Deployed to the server.Now I decide to remove cropping for that picture content by setting
crop: false
and deploy again.Expectation:
1.) The picture should be rendered
2.) The picture URL should not contain cropping information
3.) The picture should not be cropped anymore
Problem:
The picture is not rendered at all.
The picture URL contains the cropping parameters:
/pictures/59/show/260x260/181x111/277x277/some_picture.png?sh=87f2dd0b355c3368
It says:
The text was updated successfully, but these errors were encountered: