{"id":37022035,"url":"https://github.com/zguop/wisdom","last_synced_at":"2026-01-14T02:37:29.204Z","repository":{"id":54566959,"uuid":"190169090","full_name":"zguop/wisdom","owner":"zguop","description":"图片选择器 picture selecter","archived":false,"fork":false,"pushed_at":"2022-04-14T03:41:11.000Z","size":2648,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-27T09:10:48.623Z","etag":null,"topics":["image","imagepicker","imageselector-android"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zguop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-04T09:19:22.000Z","updated_at":"2023-11-06T16:40:41.000Z","dependencies_parsed_at":"2022-08-13T20:00:37.907Z","dependency_job_id":null,"html_url":"https://github.com/zguop/wisdom","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/zguop/wisdom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zguop%2Fwisdom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zguop%2Fwisdom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zguop%2Fwisdom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zguop%2Fwisdom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zguop","download_url":"https://codeload.github.com/zguop/wisdom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zguop%2Fwisdom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image","imagepicker","imageselector-android"],"created_at":"2026-01-14T02:37:28.522Z","updated_at":"2026-01-14T02:37:29.140Z","avatar_url":"https://github.com/zguop.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wisdom 多图片选择库 \n\n### 项目介绍\n\nAndroid 图片选择器，图片\\视频选择，支持UI界面完全自定义，一款更加灵活的多媒体选择工具。\n\n### wisdom_lib 核心\n- 支持图片，视频查询\n- 支持多数量选择 \n- 支持打开拍照，录像\n- 支持自定义图片加载\n- 支持自定义图片压缩\n- 支持自定义图片裁剪\n- 支持文件过滤，加载指定格式图片\n- 适配AndroidQ\n- 充分自由定制\n\n### wisdom_impl UI层\n- 默认的UI风格\n- 实现wisdom_lib所有功能\n- 可以基于UI层进行修改\n\n### 依赖\n```groovy\n\nallprojects {\n  repositories {\n    mavenCentral()\n  }\n}\n\ndependencies {\n    //核心库版本\n    implementation 'io.github.zguop:wisdom_lib:1.0.24'\n    //UI版本\n    implementation 'io.github.zguop:wisdom_impl:1.0.24'\n}\n```\n### 使用\n只配置需要的api即可\n```groovy\n\nWisdom.of(this@MainActivity)\n        .config(ofType) //选择类型 ofAll() ofImage() ofVideo()\n        .imageEngine(imageEngine) //图片加载引擎\n        .compressEngine(compressEngine)\n        .cropEngine(cropEngine)\n        .selectLimit(selectLimit) //选择的最大数量 数量1为单选模式\n        .fileProvider(\"$packageName.utilcode.provider\", \"image\") //兼容android7.0\n        .cameraEngine(cameraEngine) //自定义相机\n        .isCamera(isCamera) //是否打开相机，\n        .setMedias(resultMedia)\n        .filterImageMaxFileSize(imageFilterMaxFile)\n        .filterVideoMaxFileSize(videoFilterMaxFile)\n        .mimeTypeSet(mimeTypeSet, false)\n        .forResult(\n            0x11,\n            PhotoWallActivity::class.java\n        ) //requestCode，界面实现Activity，需要继承于核心库WisdomWallActivity\n     \noverride fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {\n    super.onActivityResult(requestCode, resultCode, data)\n    if (Activity.RESULT_OK == resultCode) {\n        if (requestCode == 0x11 \u0026\u0026 data != null) {\n            val resultMedia = Wisdom.obtainResult(data) //获取回调数据 类型Media 包含String path， Uri uri 路径\n            Log.e(\"aa\", resultMedia.toString())\n            resultMedia.forEach { media -\u003e\n                        Log.e(\"aa\", \" ===================================== \")\n                        Log.e(\"aa\", \" uri=\" + media.uri)\n                        Log.e(\"aa\", \" path=\" + media.path)\n                        Log.e(\"aa\", \" cropUri=\" + media.cropUri)\n                        Log.e(\"aa\", \" compressUri=\" + media.compressUri)\n                        Log.e(\"aa\", \" size=\" + media.size)\n                        Log.e(\"aa\", \" width=\" + media.width)\n                        Log.e(\"aa\", \" height=\" + media.height)\n                        Log.e(\"aa\", \" orientation=\" + media.orientation)\n                        Log.e(\"aa\", \" mimeType=\" + media.mineType)\n                        Log.e(\"aa\", \" duration=\" + media.duration)\n                        Log.e(\"aa\", \" fileName=\" + media.displayName)\n                        Log.e(\"aa\", \" ===================================== \")\n                    }\n        }\n    }\n}\n\n//直接进入预览页面 预览图片\n\nWisdom.of(this@MainActivity)\n     .preview()\n     .imageEngine(imageEngine)\n     .setMedias(List\u003cMedia\u003e)\n     .go(PhotoPreviewActivity::class.java)\n\n```\n\n### 配置engine\n框架提供扩展接口，实现各自自定义功能。可参考Demo中相应engine实现、可以拷贝使用\n\n\u003e* ImageEngine    实现图片加载 -\u003e GlideEngine 、PicassoEngine\n\u003e* CompressEngine 实现图片压缩 -\u003e TinyCompressEngine\n\u003e* CropEngine     实现图片裁剪 -\u003e CropperEngine 、UCropEngine\n\n### 项目截图\n\n|图|图|\n|---|---|\n|![img1](gif/auto5.gif)|![img1](gif/1560244261536.jpg)|\n\n\n### 更新\n    时间：20220413(1.0.24)\n    内容：1.增加原图勾选回调 Wisdom.isFullImage(data:Intent)\n\n    时间：20220406(1.0.23)\n    内容：1.Media新增文件名称属性\n\n    时间：20220405(1.0.22)\n    内容：1.没啥改动，就是删除无用导包，UI部分词条优化\n\n    时间：20220331(1.0.21)\n    内容：1.新增width,height,orientations属性\n         2.新增CameraEngine扩展自定义相机\n         3.UI国际化保留zh，en，如需更多语言，支持自定义文案，在style配置[theme.xml](wisdom_impl/src/main/res/values/theme.xml)属性\n\n    时间：20210721（1.0.20)\n    内容：增加原图按钮是否显示的方法\n\n    时间：20210622（1.0.19）\n    内容：1.适配AndroidX；\n         2.适配AndroidQ；\n         3.增强文件筛选功能：最大图片限制，最大视频限制，文件类型筛选\n         4.整体优化\n\n    时间：20200705（1.0.16）\n    内容：新增图片裁剪接口，扩展图片裁剪功能，自定义实现CropEngine，demo集成UCrop和Cropper裁剪框架，具体在Demo中查看。\n         增加文件选择限制，超过 filterMaxFileSize 进行文件大小过滤。\n\n    时间：20200509（1.0.15）\n    内容：新增图片压缩接口，扩展图片压缩功能，demo集成tiny压缩框架，具体查看TinyCompressEngine类，后面更新luban压缩，其它代码优化\n    \n    时间：20200507（1.0.13）\n    内容：增加string-pt,string-fr 语言描述~~~\n\n    时间：20191129（1.0.12）\n    内容：增加string-en 支持2中语言描述了~~~\n    \n    时间：20191126（1.0.11）\n    内容：修改切换相册的弹框，不在使用popWindow实现，兼容太难啦 自己写了个view- -\n\n    时间：20191112（1.0.10）\n    内容：细节小修改，无任何影响\n\n    时间：20191102（1.0.9）\n    内容：默认勾选图片。扩展图片预览功能，可以直接进入图片预览界面浏览\n    \n    时间：20190627（1.0.8）\n    内容：增强体验，在权限请求拒绝时，pop不可以再弹出\n\n    时间：20190626（1.0.7）\n    内容：修复了一个bug，进入预览页，由于相机的是否打开，疏忽了position的值，导致position值正确\n    \n    时间：20190624（1.0.6）\n    内容：稳定相机兼容性\n\n    时间：20190621（1.0.5）\n    内容：低版本兼容api兼容，wisdom_impl导入发生资源冲突，则使用exclude group :'com.android.support' 移除support\n\n    时间：20190617（1.0.4）\n    内容：增加两种图片裁剪实例，sdk本身暂不提供裁剪接口，查看demo获取实现裁剪方式\n    \n    时间：20190613（1.0.3）\n    内容：imageEngine增加到三个方法，分别加载(相册封面,缩略图，预览图) picasso加载适配\n\n    时间：20190612（1.0.2）\n    内容：一些功能优化，去除Media图片文件名字段，其实可以通过路径Path获取\n    \n    时间：20190611（1.0.0）\n    内容：图片选择框架发布，支持图片or视频单选，多选，打开相机，图片预览\n\n总结\n-\nxiexie ni de guāng gù ！ 喜欢的朋友轻轻右上角赏个star，您的鼓励会给我持续更新的动力。\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzguop%2Fwisdom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzguop%2Fwisdom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzguop%2Fwisdom/lists"}