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.07k stars 981 forks source link

Initial set image is appearing smaller than the original size #543

Open MuhammadSaad420 opened 6 months ago

MuhammadSaad420 commented 6 months ago

When i set image for the first time, the image size is smaller than the original even though i am not applying any filter yet. Following is the code i wrote to set image in PhotoEditor view.

photoEditor = PhotoEditor.Builder(this, binding.photoView)
            .setPinchTextScalable(true)
            .setClipSourceImage(true)
            .build()
        binding.photoView.source.setImageURI(Uri.parse(imageUri))
burhanrashid52 commented 6 months ago

The PhotoEditorView does not preserve the original size. It will take the size of the device. Because of this, you can only save the image in device resolution. For more details check #10