Closed KhoaChau0594 closed 1 year ago
Can you try to load this same image using glide on normal ImageView
? Does it work correctly there ?
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.
Can you try to load this same image using glide on normal
ImageView
? Does it work correctly there ?
I'm having the same issue. I am not using Glide though, I am loading image using setImageURI(). I tried loading image on normal imageview, it scales up fine.
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.
This issue was closed because it has been stalled for 5 days with no activity.
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
Hello everyone. I got a problem with scaling while using the library is the PhotoEditorView doesn't scale the image to fill all the screen width.
I am using Glide to load the image:
I have a 653x1024 PNG image, but it just renders half of the photo view
This is when previewing the image, and what I want the PhotoEditorView to display :
This is when editing the image
I've tried to change the scaleType to fitXY of the binding.photoEditorView.source, but it is still the same. If the scaleType is CENTER, the editor just shows the center of the image
Thanks for your help.