Skip to content

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

@Lakston

Description

@Lakston

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions