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

Preview/Edit UIImage #890

Closed patryk-sredzinski closed 4 months ago

patryk-sredzinski commented 5 months ago

Hey

Is there any way that I use UIImage and display photo editor with this image, resulting with edited UIImage?

I think I can show the photo editor by passing PHAssets, but I'd rather not add UIImage to iPhone Photos

longitachi commented 5 months ago

https://github.com/longitachi/ZLPhotoBrowser/blob/e1e20297d9c1f2a9e67e4dfa97bd2eca7096b241/Sources/Edit/ZLEditImageViewController.swift#L406-L413

Do you want to call the image editor directly? If yes, you can use this method.

patryk-sredzinski commented 5 months ago

Awesome, are you aware if I can do the same with GIFs, so I can preview them?

longitachi commented 5 months ago

The image editor does not support editing of GIF images.