Skip to content

MaxWidth does not act as boundary and upscales image instead #344

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

Open
2 tasks done
Lakston opened this issue Apr 9, 2025 · 0 comments
Open
2 tasks done

MaxWidth does not act as boundary and upscales image instead #344

Lakston opened this issue Apr 9, 2025 · 0 comments

Comments

@Lakston
Copy link

Lakston commented Apr 9, 2025

Current behavior

while using a maxWidth, the image is upscaled to match that maximum value instead of it acting as a max boundary

example:
Compress image that is 200x400 with a maxWidth of 1200 and the end result is an image with a width of 1200 (ratio respected)

Expected behavior

max values should act as a max value, not upscale images

Platform

  • Android
  • iOS

React Native Version

0.75.4

React Native Compressor Version

latest (1.11.0)

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

No branches or pull requests

1 participant