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

[feature/resize-based-on-image-size] Implement Image Resizing Based on Image Size Threshold #55

Merged
merged 3 commits into from
Jan 27, 2024

Conversation

onseok
Copy link
Owner

@onseok onseok commented Jan 27, 2024

Changes

  • Modified the ResizeOptions data class to include a resizeThresholdBytes field, with a default value of 1MB represented in bytes.
  • Updated the image resizing logic in the PeekabooImageResizer (Android) and UIImage.fitInto extension function (iOS) to check the file size against the resizeThresholdBytes threshold.

close #50

@onseok onseok merged commit 5019698 into main Jan 27, 2024
2 checks passed
@onseok onseok deleted the feature/resize-based-on-image-size branch January 27, 2024 09:50
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.

Resize Image only if it exceeds a size limit
1 participant