-
Notifications
You must be signed in to change notification settings - Fork 344
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
Filters list do not preserve image ratio #253
Comments
The upcoming release is considering a new behavior |
Awesome! Thank you very much @AhmeeedMostafa |
The issue is improved in version 4.3.8, please re-check it and let us know if all is good. |
@AhmeeedMostafa where is the commit that fixes this? |
@skjnldsv the issue is fixed, here u are a screenshot for a vertical image from the current demo page, please make sure that u are using the latest version (the new behavior is we are covering the filter item with the image keeping its ratio) |
You released v4.3.8 for react-filerobot-image-editor , but filerobot-image-editor is not using it
|
@AhmeeedMostafa maybe creating pull requests instead of pushing to master would allow other contributors like us to review and catch those mistakes? :) |
@skjnldsv it is peer dependency not dependency, u should update it in ur project locally by installing the proper version for for the filter size, It's a perspective from our UX team, but my POV it has more benefits than making it 45x45 as at least it will be useful for landscape to show the whole image if it's landscape and it is not good to increase the height more than that . |
Yes, but peer dependencies still show which version is being used for a specific package. Currently, if you only install I still think this should be addressed and fixed on release :) |
Closing as the cropping is working now! Thanks again for the hard work @AhmeeedMostafa ! 🎉 |
I'm aware that the new version of npm is doing that, but we are already mentioning in the docs the developer should install the so finally I see the peer dependency should be as it's currently & I don't think it's a bug , it's just about developer's implementation & notices. and let's see maybe we would have better idea/consideration for that in the future. |
Thank you for taking the time to clarify Ahmed :) |
It seems the canva size is capped
filerobot-image-editor/packages/react-filerobot-image-editor/src/components/tools/Filters/FilterItem.jsx
Lines 13 to 14 in e1fb6f0
Maybe it will be worth using a square canvas and containing the image within?
Or use the current image ratio. Might be a bit more tricky if the user edit the image size/crops the image
Context
Using latest
filerobot-image-editor version@^4.3.1
The text was updated successfully, but these errors were encountered: