Comments (5)
做的什么操作呢?
from takephoto.
getTakePhoto().onEnableCompress(compressConfig,true).onPickFromCaptureWithCrop(imageUri,cropOptions);
from takephoto.
不做剪切正常,剪切就报空指针,我的是小米手机
from takephoto.
你的cropOptions传的是什么?
手机是Android6.0系统吗?有没有申请读写SD卡的权限?
from takephoto.
CropOptions 配置为:
CropOptions cropOptions = new CropOptions.Builder().setAspectX(1).setAspectY(1).setWithOwnCrop(true).create();
选setWithOwnCrop(true)使用自带裁剪工具就会报空指针错误,和一楼错误一样,设为false用系统的没问题。
手机是华为p6(Android 4.4.2),已申请读写SD卡的权限。
@crazycodeboy 工具很方便,辛苦了
from takephoto.
Related Issues (20)
- 闪退
- 闪退
- 4.0.0 启用鲁班压缩 takesuccess 未回调到主线程
- 裁剪过后,透明图片会变黑
- android10.0外部存储适配 HOT 3
- 兼容 Android 11 了吗? HOT 2
- java.lang.IllegalArgumentException: the bind value at index 1 is null
- 混淆后 反射报错
- 保存时发生错误,保存失败 HOT 2
- 下载依赖包失败 HOT 2
- 你好 想请问一下有没有办法设置压缩路径和名称?
- 明明有相机有权限,但提示无此相机 HOT 1
- JCenter()已弃用,build.gradle(Project)里takePhoto的buildscript repositories应怎么改?
- Counldn't save changes due to an error
- Android12(SDK:31)不适配 HOT 1
- SM-A5260 android12版本 拍照后直接回调takeCancel方法 HOT 1
- 裁剪后,展示的图片自动旋转角度了
- 不建议使用:最后一次2018年更新,Android11分区存储之后,会报错。 HOT 3
- 不建议使用,存在诸多兼容问题
- luban使用有问题,裁剪图片后报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from takephoto.