longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
MIT License
4.71k stars 950 forks source link

Maintain shadow background during photo clipping #851

Closed patryk-sredzinski closed 10 months ago

patryk-sredzinski commented 10 months ago

I wanted to keep the shadow visible all the time during photo clipping. Got it working well.

We can add a property so the user can decide if he want to see it or not, but for now I've decided to leave it as it is.

https://github.com/longitachi/ZLPhotoBrowser/assets/23390884/186acd10-8a81-473e-b74b-c764ff8c4e2e

longitachi commented 10 months ago

I think a property should be added to control this. I want the user to be able to clearly see all areas of the image when dragging the crop area.

patryk-sredzinski commented 10 months ago

@longitachi I've added property called:

dimClippedAreaDuringAdjustments defaults to false, to keep original functionality.

Tell me if you'd like me to do some other changes :)