-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
BUGFIX: Allow choice of filter for resizing images #1513
Conversation
As this is strongly impacting resource usage the filter is made configurable as bugfix for now.
@kitsunet, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dfeyer, @robertlemke and @aertmann to be potential reviewers. |
See comments on #1512 as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I checked a comparison site and could see no difference between any of the filters… so why not make FILTER_BOX
the default?
Well, because as commented Gd only supported the undefined filter and imagine will throw an exception if you use anything else... I have no clue how to fix that on our side yet. |
We could set box in setup when we figure out the driver... |
Ah, overlooked that… Hm. Well, then maybe we can indeed add that to the setup step. But then no longer related to this PR. 👍 |
Site import/export is broken. Something related to this bugfix. Neos 2.3.12 |
I can confirm the same error @pankajlele reported on Neos 3.0.3. Thanks, |
@kitsunet Does the new property miss a |
Checking that, could be the issue, but then something in Flow is broken because I am pretty sure that we excluded injected stuff at some point before. |
So this change in itself is actually correct as it is... Wrong is that here: https://github.com/neos/flow-development-collection/blob/master/Neos.Flow/Classes/Reflection/ReflectionService.php#L1609 properties with InjectConfiguration are not ignored for the (db) class schema... |
Can confirm this is the cause and above is the fix for the 3.0 branch being broken. |
Is there a fix for 2.3 already? |
Ok, the fix for 3.0 also works for 2.3, so it should be merged there too. |
Fix has been released in Flow 3.3.12 and 4.0.5 so an update should be fine to fix it. |
Great, thank you all! Fix is confirmed and working with Neos 2.3 |
The resize filter can have considerable impact on file size and
processing power needed to do the resize, it's therefore sensible
to give the user a choice in this.
Additionally removes copying the image as that is entirely unnecessary
and impacts memory usage profoundly.