react-native-compressor
react-native-compressor copied to clipboard
MaxWidth does not act as boundary and upscales image instead
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
- [X] Android
- [X] iOS
React Native Version
0.75.4
React Native Compressor Version
latest (1.11.0)