Compressor icon indicating copy to clipboard operation
Compressor copied to clipboard

Android N Problem

Open gelodgreat opened this issue 7 years ago • 3 comments

Sir i think the compressor doesn't work properly for nougat

gelodgreat avatar Jul 31 '17 02:07 gelodgreat

same here

farlyiklanotto avatar Oct 12 '17 17:10 farlyiklanotto

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

appsdev85 avatar Jan 21 '18 14:01 appsdev85

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())); 

appsdev85 avatar Jan 22 '18 17:01 appsdev85