Replies: 1 comment
-
|
For reference, this is the Cloudinary implementation: https://cloudinary.com/cookbook/add_a_shadow_effect_to_an_image |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, if I use the rotation parameter in
getFilePreview, there is no way for me to achieve drop shadow. The closest I can get to is:I think there should be additional parameters for defining drop shadow, just like there is for borders. This will allow us to use drop shadows on rotated images. We should be able to define:
On the other hand, that might be too hard to configure properly, so we could just add one parameter
shadowthat could be one ofinner, outer-small, outer-medium, outer-big. This will give fewer options but they are easy to understand and can give Appwrite space to create the best drop shadows possible.For example, to make drop shadows feel natural, there should be 2 layers of shadow, as described in the screenshot below. That would be extremely hard to configure on my own, but "outer-medium" could have that defined on the Appwrite side.
What do you think? Which approach is better? Can you see any other way to implement it? Do we even need drop shadow in
getFilePreview?Beta Was this translation helpful? Give feedback.
All reactions