You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The focuspoint use the old thumb method of october to resize images. It would be great to update it and use the resize method instead.
The biggest benefit of the switch is that resize method accept fileupload object AND path string.
I think the best solution would be to keep the |resize filter, and add focuspoint styles if the image is a fileupload widget that use focuspoint. Like that, your frontend syntax don't change even if you add focuspoint to a fileupload widget later.
If it's not possible, would be great to have a |focus filter that would behave exactly like the |resize filter, but that would add focuspoint features to fileuploadwidget that use it (but also accept a simple string path like the |resize filter)
What do you think about it ?
The text was updated successfully, but these errors were encountered:
But, when I deal with focuspoint, I have to add some conditions to use .focus instead of |resize, that's not ideal.
Another small benefits of overriding |resize is that I'm not sur that thumbnails have the same save logic in october, and using the same would make cache cleaning easier (console command tu purge thumbs etc...)
Hello,
The focuspoint use the old thumb method of october to resize images. It would be great to update it and use the resize method instead.
The biggest benefit of the switch is that resize method accept fileupload object AND path string.
I think the best solution would be to keep the |resize filter, and add focuspoint styles if the image is a fileupload widget that use focuspoint. Like that, your frontend syntax don't change even if you add focuspoint to a fileupload widget later.
If it's not possible, would be great to have a |focus filter that would behave exactly like the |resize filter, but that would add focuspoint features to fileuploadwidget that use it (but also accept a simple string path like the |resize filter)
What do you think about it ?
The text was updated successfully, but these errors were encountered: