#使用libjpeg进行图片压缩
blueberrycoder / compress Goto Github PK
View Code? Open in Web Editor NEW使用libjpeg进行图片压缩
使用libjpeg进行图片压缩
#使用libjpeg进行图片压缩
project下载完以后,没有修改任何东西,点击压缩,就提示找不到找不到‘libjpeg.so’这个库,求解决,谢谢。
FATAL EXCEPTION: Thread-5
Process: com.blueberry.compress, PID: 14240
java.lang.UnsatisfiedLinkError: dlopen failed: library "libjpeg.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:977)
at java.lang.System.loadLibrary(System.java:1567)
at com.blueberry.compress.ImageCompress.(ImageCompress.java:12)
at com.blueberry.compress.ImageCompress.nativeCompressBitmap(Native Method)
at com.blueberry.compress.MainActivity.compressing(MainActivity.java:145)
at com.blueberry.compress.MainActivity.access$400(MainActivity.java:29)
at com.blueberry.compress.MainActivity$2.run(MainActivity.java:121)
跟系统压缩对比
1,压缩后,文件大小相同(没有使用特殊图片,仅限于用手机拍摄的照片)
2,图像质量几乎没有变化(从肉眼看)
3,最关键,比系统压缩更耗时(几乎是系统压缩的2倍以上)
2018年6月30日,手机三星S8,Android7.0(还用过一台魅族测试,结论一样)
实践过程,通过Luban压缩,修改了质量压缩方式,得出以上结论
Error:error: '../../../../libjpeg/prebuilt/x86/libjpeg.so', needed by '../../../../build/intermediates/cmake/debug/obj/x86/libcompress.so', missing and no known rule to make it
使用100的qulity,多次压缩之后图片质量还是变差了,文件大小也变大了,能不能无损的保存到本地,不进行压缩
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.