Quellcode durchsuchen

Rotate for wrong orientation image

Hau Vo vor 8 Jahren
Ursprung
Commit
aa385b788c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      android/src/main/java/com/reactlibrary/RNThumbnailModule.java

+ 1
- 1
android/src/main/java/com/reactlibrary/RNThumbnailModule.java Datei anzeigen

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