public String compress ( String imagePath , File destination , boolean deleteSourceImage ) { String compressedImagePath = compressImage ( imagePath , destination ) ; if ( deleteSourceImage ) { boolean isdeleted = deleteImageFile ( imagePath ) ; Log . d ( LOG_TAG , ( isdeleted ) ? "Source image file deleted" : "Error: Source image file not deleted." ) ; } return compressedImagePath ; }
Compress the image at with the specified path and return the filepath of the compressed image .