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

Each rotation decrease the quality of the image a little bit

Open ggunti opened this issue 7 years ago • 0 comments

OS: Android 6 RN version: 0.55.4 react-native-image-rotate version: 2.1.0

HOW TO REPRODUCE IT?: Rotate an image. Then rotate the returned image. Then rotate the newly returned image.... Do this let's say 50-100 times. The idea is to rotate again and again the newly returned image.

WHAT WE EXPECT?: So, after 50-100 rotations we still should get the original image (same quality - eventually rotated).

WHAT ACTUALLY HAPPEN?: After 50-100 rotations the image quality is very-very low, which means that this library do not keep the quality of the image while rotating (every rotation decrease the quality a little bit). For < 10 rotations it is not very visible with human eye.

EXAMPLE Original image: img1 After many rotations (around 50): img2

Note: I didn't try it on iOS, only on Android.

ggunti avatar Aug 30 '18 08:08 ggunti