Giter Site home page Giter Site logo

joy-whale / imageselector Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 11.0 14.31 MB

android图片选择器,选择头像或上传图片,单选、多选图片、裁剪图片,包含圆形和方形形状的图片裁剪框

License: Apache License 2.0

Java 100.00%

imageselector's People

Contributors

joy-whale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

imageselector's Issues

IllegalArgumentException: width must be > 0

03-09 10:38:41.744 8138-8138/cn.joy.imageselector.sample E/ImageCropperActivity: getCroppedImage : actualImageWidth 1080.0displayedImageWidth1080.0scaleFactorWidth1.0
03-09 10:38:41.744 8138-8138/cn.joy.imageselector.sample E/ImageCropperActivity: getCroppedImage : actualImageHeight 1600.0displayedImageHeight1600.0scaleFactorHeight1.0
03-09 10:38:41.744 8138-8138/cn.joy.imageselector.sample E/ImageCropperActivity: getCroppedImage : cropWindowX 0.0cropWindowY0.0cropWindowWidth0.0cropWindowHeight0.0
03-09 10:38:41.744 8138-8138/cn.joy.imageselector.sample E/ImageCropperActivity: getCroppedImage : actualCropX 0.0actualCropY0.0actualCropWidth0.0actualCropHeight0.0
03-09 10:38:41.746 8138-8138/cn.joy.imageselector.sample E/AndroidRuntime: FATAL EXCEPTION: main
Process: cn.joy.imageselector.sample, PID: 8138
java.lang.IllegalArgumentException: width must be > 0
at android.graphics.Bitmap.checkWidthHeight(Bitmap.java:566)
at android.graphics.Bitmap.createBitmap(Bitmap.java:889)
at android.graphics.Bitmap.createBitmap(Bitmap.java:858)
at cn.joy.imageselector.crop.ImageCropperActivity.getCroppedImage(ImageCropperActivity.java:206)
at cn.joy.imageselector.crop.ImageCropperActivity.savedCropperImage(ImageCropperActivity.java:160)
at cn.joy.imageselector.crop.ImageCropperActivity.doSave(ImageCropperActivity.java:137)
at cn.joy.imageselector.crop.ImageCropperActivity$1.onClick(ImageCropperActivity.java:89)
at android.view.View.performClick(View.java:5646)
at android.view.View$PerformClick.run(View.java:22459)
at android.os.Handler.handleCallback(Handler.java:761)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.