burhanrashid52 / PhotoEditor

A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
MIT License
4.14k stars 991 forks source link

PhotoPreview is too small #472

Closed Venco-official-275 closed 1 year ago

Venco-official-275 commented 2 years ago

when i use this function photoEditor.setClipSourceImage(true) the image preview is becomes to small

burhanrashid52 commented 2 years ago

Can you please share more details.

haseebs92 commented 2 years ago

photo editor view class has scale type set to CENTER_INSIDE which is making some images too small, this should be changed to fit center

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 4 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.

aintiqaa-technologies commented 4 months ago

mPhotoEditorView.source.scaleType = ImageView.ScaleType.CENTER_CROP

fun loadImage(imgURL: Uri?, errorThumb: Int?, imgView: PhotoEditorView?,mMeasuredWidth:Int) {
imgView?.source?.load(imgURL) {
placeholder(errorThumb ?: 0)
error(errorThumb ?: 0)
memoryCachePolicy(CachePolicy.ENABLED)
allowHardware(false)
size(mMeasuredWidth)
}
}

This worked in my case I am using Coil to load Image