-
-
Notifications
You must be signed in to change notification settings - Fork 963
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
Uri Support #91
base: master
Are you sure you want to change the base?
Uri Support #91
Conversation
mohammed-rampurawala
commented
Jan 4, 2018
- Compressor.java : Added method for compressing and copying the image using the Uri.
- ImageUti.java : Method to fetch and compress the image using the Uri.
…e using the Uri. - ImageUti.java : Method to fetch and compress the image using the Uri.
BitmapFactory.decodeStream(inputStream, null, options); | ||
|
||
// Calculate inSampleSize | ||
options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the calculate sample size method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thanks 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the method calculate in image size