Open AkshayNar opened 4 years ago
holaa le pudistes ayar el error tengo el mismo error y no puedo corregirlo
This problem appear when you update the version not updated make it
implementation 'id.zelory:compressor:2.1.1' it will fix your problem
for more info https://github.com/zetbaitsu/Compressor/blob/master/README_v2.md
can anyone tell me what is the problem in code
Bitmap compressedImage = new Compressor(this) .setMaxWidth(320) .setMaxHeight(240) .setQuality(50) .compressToBitmap(actualImage); ByteArrayOutputStream baos = new ByteArrayOutputStream(); compressedImage.compress(Bitmap.CompressFormat.JPEG, 50, baos); byte[] imageUri = baos.toByteArray();
Error is showing red line under Compressor