react-native-compressor icon indicating copy to clipboard operation
react-native-compressor copied to clipboard

MaxWidth does not act as boundary and upscales image instead

Open Lakston opened this issue 7 months ago • 0 comments

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)

Lakston avatar Apr 09 '25 14:04 Lakston