Beyka / Android-TiffBitmapFactory

MIT License
133 stars 46 forks source link

Open Tiff and Convert to JPG #16

Closed eoherrer closed 7 years ago

eoherrer commented 7 years ago

Hi!,

I'm trying to use the decode process, but returns null the bitmap.

File file = new File("/storage/emulated/0/Android/data/Temp/50a.tif");

//Read data about image to Options object TiffBitmapFactory.Options options = new TiffBitmapFactory.Options(); options.inJustDecodeBounds = true;

        Bitmap bmp = null;
        bmp = TiffBitmapFactory.decodeFile(file, options);

Can you please tell me if I missing something.

Beyka commented 7 years ago

When inJustDecodeBounds set to true - bitmap not decided, but meta-information read. Set this variable to false and decoder will return bitmap

eoherrer commented 7 years ago

Awesome Thanks!!!!