Closed eoherrer closed 7 years ago
I forgot to mention that later I convert to JPG again to show user how was the converting, here's the code
if (saved) { Uri resultTifUri = Uri.fromFile(tiffFile);
debugLog("Stored tif image as: " + resultTifUri.toString());
debugLog("Loading tif image to convert to JPG: " + resultTifUri.toString());
TiffBitmapFactory.Options jpgOptions = new TiffBitmapFactory.Options();
jpgOptions.inJustDecodeBounds = false;
Bitmap bmp = null;
bmp = TiffBitmapFactory.decodeFile(tiffFile, jpgOptions);
if(bmp != null) {
resultImgUri = sdkWrapper.storeImage(bmp, quality);
debugLog("Tif image converted to JPG: " + resultImgUri.toString());
jsonArgs.put("imageTiffUri", resultTifUri.toString());
}
}
And attached is the image
The above example is with LZW compression, with CCITTFAX4 is worst attached the images.
Hello. I'm very sorry for this bug. Please use newest version 0.9.7.5, it contains old tiff creating algorithm with some improvements. Latest version should be fine.
Thanks for your quick response but I tried with the 0.9.7.5 and CCITTFAX4 Compression and didn't work :(.
Sorry I forgot to change the version, It is working now.
Sorry I forgot to change the version, It is working now.
Oh! This is good, because I was disappointed by my work) I also created separate project to test save functions. Thank you for your feedback and testing my library. If you have any propositions - you can create an issue.
Hi! Recently I upadted to the last version com.github.beyka:androidtiffbitmapfactory:0.9.7.4, but when I try to save the JPG image to Tiff isn't converting like the older version. Attached you will find the original and how is converted. Also here is the code I'm using it.
Please advice!!
Regards!!!
3.zip