Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

width and height must be > 0 #39

Open
misparking opened this issue Jun 27, 2018 · 0 comments
Open

width and height must be > 0 #39

misparking opened this issue Jun 27, 2018 · 0 comments

Comments

@misparking
Copy link

misparking commented Jun 27, 2018

复现环境:华为荣耀10,系统为8.1.0;
复现场景:调取相机拍照后,点击“√ ”(确认)后出现以下异常:

java.lang.IllegalArgumentException: width and height must be > 0
	at android.graphics.Bitmap.createBitmap(Bitmap.java:1209)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:1176)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:1126)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:1087)
	at com.nanchen.compresshelper.ImageUtil.getScaledBitmap(ImageUtil.java:131)
	at com.nanchen.compresshelper.ImageUtil.compressImage(ImageUtil.java:177)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant