-
Notifications
You must be signed in to change notification settings - Fork 47
TiffConverter.convertJpgTiffFd fails to convert image with a CantOpenFileException from cache. #58
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
Comments
Do you have read storage permission? |
Also any logs with error? |
Yes I have Here are the error logs I'm getting.
|
These are the crash logs I get when I remove the
|
if you get want to use File descriptor from ParcelFileDescriptor, you first need to detach the file descriptor:
|
I have a jetpack compose app with the following logic that triggers to allow user to select an image from the gallery and then copies it to cache:
I see the

copiedimage.jpeg
in the cache directory and I've saved it to my desktop and opened it so I know that's being saved correctly:This is my TiffConverterObject class which uses this library to convert the image to tiff but it keeps crashing returning a
CantOpenFileException
:I've tried all combinations of
r,rw,rwt
modes on both files as well as.jpg, .jpeg, .tif, and .tiff
extensions with no luck. Any help would be greatly appreciated.The text was updated successfully, but these errors were encountered: