# LibJpegBitmapCompress
**Repository Path**: canjunhao/LibJpegBitmapCompress
## Basic Information
- **Project Name**: LibJpegBitmapCompress
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-03-23
- **Last Updated**: 2021-03-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## EffectiveBitmap
#### 通过JNI实现对图片文件的压缩,到达质量、大小、清晰度综合最优。
#### jni_278KB
#### quality_484KB
#### sample_199KB
#### size_238KB
- 采样率、尺寸压缩不是我们要的结果
- JNI、质量压缩设置的压缩质量值均为30,JNI是278KB,直接质量压缩是484KB,综合起来,JNI最优
## 使用方法
1.将libs包中libeffective-bitmap.so、libjpegbither.so到项目中并加载即可。但是你必须使用类的限定名为“com.effective.bitmap.utils.EffectiveBitmapUtils”并添加:
```
public static native String compressBitmap(Bitmap bit, int w, int h, int quality, byte[] fileNameBytes,
boolean optimize);
```
2.download项目,构建修改自己想要的abi,以及使用类的限定名。