Compressor
Compressor copied to clipboard
Android N Problem
Sir i think the compressor doesn't work properly for nougat
same here
same here,
ExifInterface got an unsupported image format file(ExifInterface supports JPEG and some RAW image formats only) or a corrupted JPEG file to ExifInterface
Sorry for my last reply its working when check the image size on the server side, i found it compressed but on android studio it didn't check below code
try {
newFile = new Compressor(this)
.setMaxHeight(512)
.setMaxWidth(512)
.compressToFile(file);
}catch (Exception e){
Log.e("ERROR", "Error compressing file." + e.getMessage());
}
Log.i("after compression --> " , String.valueOf(newFile.getTotalSpace()));