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.17k stars 992 forks source link

Can't use with Glide #247

Closed gusmantoro closed 4 years ago

gusmantoro commented 4 years ago

I can't use glide to load the image. I have tried to load the image on imageview, it successfully loaded, but doesn't work if I set to photoEditorView

Glide.with(context).load(new File(filePath)).into(photoEditorView.getSource());

it throws an error : java.lang.IllegalArgumentException: width and height must be > 0

gusmantoro commented 4 years ago

oh sorry, now I can use glide, I just have to disable the brush before and enable it after Glide successfully load the image

this is my modification code

image

After that modification, I have no issues with the library, sorry and big thanks for such cool library