Distorted image when apply at least on filter GLSurface

58 views Asked by At

I forked this library on github: PhotoEditor library but I have not changed any part related to effect filter.

My Flow is: Download with glide a bitmap and after i will send to PhotoEditor library. When i select at least one filter (gray,rotate, ecc...) the image is distorted.

I checked size of bitmap and it is ok. I checked size of surfaceView and it changes when applying the first filter

@override
public void onSurfaceChanged(GL10 gl, int width, int height) {
if (mTexRenderer != null) {
Log.e("ONSURFCHANGED",width+"\nHeight:"+height);
mTexRenderer.updateViewSize(width, height);
}

Before applying filter

Before

and after

After

this is the set of filter type: FILTER TYPE and this: File where applies filter

1

There are 1 answers

0
Lorenzo Sogliani On BEST ANSWER

The problem was another library that cropped image in ratio wrong! Thanks