Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Format code
  • Loading branch information
beroso committed Jan 12, 2023
commit d6f71f61685da749656df3292c2b867062845929
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ String resizeImageIfNeeded(
try {
String[] pathParts = imagePath.split("/");
String imageName = pathParts[pathParts.length - 1];
options.inSampleSize =
options.inSampleSize =
calculateInSampleSize(options, maxWidth.intValue(), maxHeight.intValue());
options.inJustDecodeBounds = false;
File file =
File file =
resizedImage(
decodeFile(imagePath, options), maxWidth, maxHeight, imageQuality, imageName);
copyExif(imagePath, file.getPath());
Expand Down