Open eliorc opened 8 years ago
Same here. I tried all combinations(Uri/Path) but still it is throwing that exception.
Same here.
Try new version bros..
same here in huawei android 6.0 with the new version 1.0.4
File compressedFile = Compressor.getDefault(getApplicationContext()).compressToFile(file);
Caused by: java.lang.IllegalArgumentException: width and height must be > 0
I have same problem on Android 7.0 , Nexus 5. Version 1.0.4
I have same problem on Android 6.0 , Motorola XT1068
Experiencing the same issue on Samsung Galaxy Note8, Android 7.1
Library version 2.1.0
I have double checked the file I'm using for compressToFile() is indeed an image file. I have succeeded using the exact same file for uploading it as is.
Though compressToFile() throws an
java.lang.IllegalArgumentException:
width and height must be > 0`This is the calling function
File compressedFile = Compressor.getDefault(this).compressToFile(new File(uri));
Where uri is a string representing the location.