Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picture is not clear and cropping problem #133

Open
arunkush opened this issue Aug 26, 2020 · 4 comments
Open

Picture is not clear and cropping problem #133

arunkush opened this issue Aug 26, 2020 · 4 comments

Comments

@arunkush
Copy link

Hello
When I click the image and crop it which part i have crop that not showing in the app some different part show the app.
2. when i save the picture and check it again it is not clear how i can in create picture quality.

@jhansireddy
Copy link
Owner

Agreed with the second issue of picture quality, but first issue I never experienced.

@arunkush
Copy link
Author

arunkush commented Oct 18, 2020 via email

@OmkarSsawant
Copy link

In Case , Your Image is Simply getting cropped then just change the following things :

In ScanFragment.java

change method

              private Bitmap scaledBitmap(Bitmap bitmap, int width, int height){
        Matrix m = new Matrix();
       m.setRectToRect(new RectF(0, 0, bitmap.getWidth(), bitmap.getHeight()), new RectF(0, 0, width, height),         Matrix.ScaleToFit.CENTER);
       return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), m, false);
       
    }

to :

 private Bitmap scaledBitmap(Bitmap bitmap, int width, int height){
       return Bitmap.createScaledBitmap(bitmap,width,height,false);
    }

@ashwinjawale24
Copy link

@arunkush @jhansireddy did you got resolution of improving image quality?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants