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

Crash/exception when using size option #49

Closed
hemb opened this issue Oct 9, 2016 · 2 comments
Closed

Crash/exception when using size option #49

hemb opened this issue Oct 9, 2016 · 2 comments

Comments

@hemb
Copy link

hemb commented Oct 9, 2016

When picking an image from the gallery, some images throw an IOException when using the size option, e.g. RxPaparazzo.takeImage(activity).usingGallery().size(new CustomMaxSize(500));

java.lang.RuntimeException: java.io.IOException: Invalid marker
    at rx.exceptions.Exceptions.propagate(Exceptions.java:58)
    at com.fuck_boilerplate.rx_paparazzo.interactors.ImageUtils.copyExifRotation(ImageUtils.java:260)
    ...
Caused by: java.io.IOException: Invalid marker
    at android.media.ExifInterface.saveJpegAttributes(ExifInterface.java:1961)
    at android.media.ExifInterface.saveAttributes(ExifInterface.java:1604)
   at com.fuck_boilerplate.rx_paparazzo.interactors.ImageUtils.copyExifRotation(ImageUtils.java:256)

Looks like they had the same problem in the uCrop library. Yalantis/uCrop#184

@miguelbcr
Copy link
Owner

Hi @hemb,
thanks for the issue, it seems to be related with non JPG images and ExifInterface.saveAttributes(), which only supports JPG files

Try version 0.3.2 out and let me know if it works

@hemb
Copy link
Author

hemb commented Oct 9, 2016

@miguelbcr Yes, fixed in 0.3.2. Thanks!

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

2 participants