Skip to content

Uri Support#91

Open
mohammed-rampurawala wants to merge 1 commit intozetbaitsu:masterfrom
mohammed-rampurawala:uri_compressor
Open

Uri Support#91
mohammed-rampurawala wants to merge 1 commit intozetbaitsu:masterfrom
mohammed-rampurawala:uri_compressor

Conversation

@mohammed-rampurawala
Copy link
Copy Markdown

  • 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);
Copy link
Copy Markdown

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?

Copy link
Copy Markdown
Author

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

Copy link
Copy Markdown

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
Copy Markdown

@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.

2 participants