Bladeren bron

Rotate for wrong orientation image

Hau Vo 8 jaren geleden
bovenliggende
commit
aa385b788c
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      android/src/main/java/com/reactlibrary/RNThumbnailModule.java

+ 1
- 1
android/src/main/java/com/reactlibrary/RNThumbnailModule.java Bestand weergeven

50
     int bitmapWidth = image.getWidth();
50
     int bitmapWidth = image.getWidth();
51
     int bitmapHeight = image.getHeight();
51
     int bitmapHeight = image.getHeight();
52
 
52
 
53
-    if ((bitmapWidth > bitmapHeight) !== (videoWidth > videoHeight)) {
53
+    if ((bitmapWidth > bitmapHeight) != (videoWidth > videoHeight)) {
54
       // we need to rotate image
54
       // we need to rotate image
55
       Matrix matrix = new Matrix();
55
       Matrix matrix = new Matrix();
56
       matrix.postRotate(-90);
56
       matrix.postRotate(-90);