Android-TiffBitmapFactory icon indicating copy to clipboard operation
Android-TiffBitmapFactory copied to clipboard

TiffConverter return false.

Open ravikumar5955 opened this issue 6 years ago • 3 comments

The TiffConverter retuns false. I have provided the input bmp path and output tiff path . and i get 8-byte image in the destination folder. where as the bmp file is around 300kb.

ravikumar5955 avatar Jan 02 '19 11:01 ravikumar5955

I'm having the same issue with converting to PNG.

jfacoustic avatar Apr 18 '19 21:04 jfacoustic

Ahah! I was being stupid. At least for me, I forgot to ask the user for file system permissions. I just added to my Main Activity's onCreate method.

ActivityCompat.requestPermissions(this, arrayOf(android.Manifest.permission.READ_EXTERNAL_STORAGE, android.Manifest.permission.WRITE_EXTERNAL_STORAGE), 1)

jfacoustic avatar Apr 18 '19 21:04 jfacoustic

@ravikumar5955 If it's still relevant to you, try this out.

jfacoustic avatar Apr 18 '19 21:04 jfacoustic