Skip to content

Commit

Permalink
Merge pull request #411 from lolsheeplol/support-exifinterface-non-na…
Browse files Browse the repository at this point in the history
…tive

Support exifinterface non native
  • Loading branch information
Legementarion authored Apr 18, 2018
2 parents 065ae11 + b9055ce commit bc8a5be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions ucrop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ android {

dependencies {
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:exifinterface:27.1.0'
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.RectF;
import android.media.ExifInterface;
import android.net.Uri;
import android.os.AsyncTask;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.media.ExifInterface;
import android.util.Log;

import com.yalantis.ucrop.callback.BitmapCropCallback;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Point;
import android.media.ExifInterface;
import android.net.Uri;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.media.ExifInterface;
import android.util.Log;
import android.view.Display;
import android.view.WindowManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

package com.yalantis.ucrop.util;

import android.media.ExifInterface;
import android.support.media.ExifInterface;
import android.text.TextUtils;
import android.util.Log;

Expand Down Expand Up @@ -377,7 +377,7 @@ public int read(byte[] buffer, int byteCount) throws IOException {

public static void copyExif(ExifInterface originalExif, int width, int height, String imageOutputPath) {
String[] attributes = new String[]{
ExifInterface.TAG_APERTURE,
ExifInterface.TAG_F_NUMBER,
ExifInterface.TAG_DATETIME,
ExifInterface.TAG_DATETIME_DIGITIZED,
ExifInterface.TAG_EXPOSURE_TIME,
Expand All @@ -392,12 +392,12 @@ public static void copyExif(ExifInterface originalExif, int width, int height, S
ExifInterface.TAG_GPS_LONGITUDE_REF,
ExifInterface.TAG_GPS_PROCESSING_METHOD,
ExifInterface.TAG_GPS_TIMESTAMP,
ExifInterface.TAG_ISO,
ExifInterface.TAG_PHOTOGRAPHIC_SENSITIVITY,
ExifInterface.TAG_MAKE,
ExifInterface.TAG_MODEL,
ExifInterface.TAG_SUBSEC_TIME,
ExifInterface.TAG_SUBSEC_TIME_DIG,
ExifInterface.TAG_SUBSEC_TIME_ORIG,
ExifInterface.TAG_SUBSEC_TIME_DIGITIZED,
ExifInterface.TAG_SUBSEC_TIME_ORIGINAL,
ExifInterface.TAG_WHITE_BALANCE
};

Expand Down

0 comments on commit bc8a5be

Please sign in to comment.