Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported image format file for ExifInterface #2

Open
nqkwey opened this issue Feb 1, 2018 · 0 comments
Open

Unsupported image format file for ExifInterface #2

nqkwey opened this issue Feb 1, 2018 · 0 comments

Comments

@nqkwey
Copy link

nqkwey commented Feb 1, 2018

Sometimes picking a photo from the gallery causes this IOException: Invalid image: ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface.

Stack trace:
java.io.IOException: Invalid marker: 89 at android.media.ExifInterface.getJpegAttributes(ExifInterface.java:1835) at android.media.ExifInterface.loadAttributes(ExifInterface.java:1475) at android.media.ExifInterface.<init>(ExifInterface.java:1112) at com.rosberry.mediapicker.util.ExifUtils.getExifOrientation(ExifUtils.java:45) at com.rosberry.mediapicker.util.PhotoUtils.getRotation(PhotoUtils.java:119) at com.rosberry.mediapicker.MediaPhotoProcessor.loadInBackground(MediaPhotoProcessor.jav at com.rosberry.mediapicker.MediaPhotoProcessor.loadInBackground(MediaPhotoProcessor.jav at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:312) at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:69) at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:66) at android.os.AsyncTask$2.call(AsyncTask.java:304) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:762)

The image that causes this exception is provided below:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant