Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
parveshneedhoo committed Jun 9, 2023
1 parent ad0df4b commit 1d5c24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/Thumbnail.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ + (UIImage *)thumbnailWithContentsOfURL:(NSURL *)URL maxPixelSize:(CGFloat)maxPi
double thumbnailWidth;
CGSize thumbnailSize;
double maxPointSize = maxPixelSize / (double) (image.scale);

double ratio;

if ((image.size.width / image.size.height) > 1) {
ratio = MAX(image.size.width / maxPointSize, image.size.height / maxPointSize);
} else {
Expand Down

0 comments on commit 1d5c24d

Please sign in to comment.