# LibjpegCompress **Repository Path**: master/LibjpegCompress ## Basic Information - **Project Name**: LibjpegCompress - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 使用: Gradle ``` compile 'me.xiaosai:image_compress:1.0.1' ``` Simple Example: ``` ImageCompress.with(this) .load(filePath) .setTargetDir(externalStorageDirectory) .ignoreBy(150) .setOnCompressListener(new ImageCompress.OnCompressListener() { @Override public void onStart() { Log.e("compress","onStart"); } @Override public void onSuccess(String filePath) { Log.e("compress","onSuccess="+filePath); choose_bit.setImageBitmap(BitmapFactory.decodeFile(filePath)); } @Override public void onError(Throwable e) { e.printStackTrace(); Log.e("compress","onError"); } }).launch(); ```