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

Uri Support #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mohammed-rampurawala
Copy link

  • 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);

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?

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) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks 😃

Copy link

@DeekshithRajBasa DeekshithRajBasa left a 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

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

Successfully merging this pull request may close these issues.

None yet

2 participants