react-native-image-resizer icon indicating copy to clipboard operation
react-native-image-resizer copied to clipboard

Resize Image Without Preserving Pixel Ratio

Open Burak07 opened this issue 8 years ago • 2 comments

First of all thank you for component. It works as expected.

I wonder if it is possible to resize image withour preserving pixel ratio. Assume that I want to keep my all images 200x200.

Burak07 avatar Feb 20 '17 10:02 Burak07

Hey @Burak07! This is not possible for now, the given width/height are always used as a maximum size, the resizing being done to keep aspect ratio. If you have some time, you could add an optional keepAspectRatio parameter (being true by default) and if set to false, change the function doing the resize in the Java and Objective-C code. 😄

4ian avatar Feb 23 '17 20:02 4ian

Related issue https://github.com/bamlab/react-native-image-resizer/issues/33

LRNZ09 avatar May 13 '19 13:05 LRNZ09

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 01 '22 19:09 stale[bot]

This issue has been automatically closed. Thank you for your contributions.

stale[bot] avatar Sep 09 '22 03:09 stale[bot]