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
Normalize images loaded from storage #1548
Normalize images loaded from storage #1548
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This PR is stale because it has been open 60 days with no activity. Remove the stale label or add a comment, or this PR will be closed in 30 days. You can always re-open if you feel this is something we should still keep working on. Tag @heynemann for more information. |
This PR was closed because it has been stale for 30 days with no activity. |
Hey @thomas-brx, first of all, thanks for your contribution! What do you think about Otherwise, all other calls to method e.g. [...]
if (
mime == "image/gif"
and self.context.config.USE_GIFSICLE_ENGINE
):
self.context.request.engine = (
self.context.modules.gif_engine
)
else:
self.context.request.engine = self.context.modules.engine
fetch_result.normalized = self.context.request.engine.normalize()
return fetch_result
[...] |
Pull Request Test Coverage Report for Build 5521461086
💛 - Coveralls |
170c33d
to
de302c1
Compare
#1568 didn't see any test, I hope this one tells a different story 😊 Please LMK if I can help with anything. |
@RaphaelVRossi thanks, I was testing your idea but I didn't succeed 😢. When we normalize the image we use the image sizes (here), and if we normalized the image at this point we would not have ps: @scorphus feel free to give your opinion (always) ❤️ |
83c3317
to
e4e0cb3
Compare
@RaphaelVRossi, @devppjr. Thank you so much for taking a look at this, sorry for not being able to respond sooner. Had some issues getting the test suite to run yesterday, but I see a test has been added already 😍 |
7915742
to
02db082
Compare
02db082
to
6855c1c
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Awesome to see one more bug being fixed! Thanks all of you for your contributions! ❤️ |
This PR is a workaround for #1547.
It will run
engine.normalization()
after the engine has loaded the buffer from storage.Happy to try to add some tests for this if the workaround feels acceptable.