{"id":23776232,"url":"https://github.com/bihe0832/getimageinfo","last_synced_at":"2025-06-13T04:37:13.830Z","repository":{"id":78951659,"uuid":"87290980","full_name":"bihe0832/getImageInfo","owner":"bihe0832","description":"一款基于Java环境的获取图片信息的工具，可以获取图片的透明度、大小等","archived":false,"fork":false,"pushed_at":"2017-05-16T01:13:40.000Z","size":818,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T11:01:50.196Z","etag":null,"topics":["alpha","png","tinyjpg","tinypng"],"latest_commit_sha":null,"homepage":"http://blog.bihe0832.com/png_alpha.html","language":"Java","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/bihe0832.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-05T09:23:16.000Z","updated_at":"2019-11-12T01:28:38.000Z","dependencies_parsed_at":"2023-04-20T01:30:44.926Z","dependency_job_id":null,"html_url":"https://github.com/bihe0832/getImageInfo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bihe0832/getImageInfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bihe0832%2FgetImageInfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bihe0832%2FgetImageInfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bihe0832%2FgetImageInfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bihe0832%2FgetImageInfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bihe0832","download_url":"https://codeload.github.com/bihe0832/getImageInfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bihe0832%2FgetImageInfo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259582671,"owners_count":22880063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["alpha","png","tinyjpg","tinypng"],"created_at":"2025-01-01T07:13:55.444Z","updated_at":"2025-06-13T04:37:13.812Z","avatar_url":"https://github.com/bihe0832.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 简介\n\ngetImageInfo 是几款个人基于Java编写的获取图片信息（大小、透明度以及编码方案）、图片压缩等的工具，方便在命令行处理图片。\n\n### 目录介绍\n\n\t├── README.md\t：项目介绍\n\t│\n\t├── head.jpg：非透明渐变图片事例\n\t│\n\t├── head.png：透明渐变图片事例\n\t│\n\t├── getImgInfo.jar：查看图片基本信息（大小、透明度以及编码方案）的可执行jar\n\t│\n\t├── getImgInfo：getImgInfo.jar源码\n\t│\n\t├── tinyjpg.jar：封装了tinyjpg，支持HTTP代理的图片压缩SDK的可执行jar\n\t│\n\t└── tinyjpg：tinyjpg.jar的源码\n\n## 使用事例\n\n这里仅介绍核心用法，详细的用法请参照工具对应目录下的README文件\n\n### getImgInfo.jar\n\n\t➜  getPNGInfo git:(master) ✗ java -jar ./getImgInfo.jar head.jpg\n\t{\"ret\":0,\"msg\":\"图片是否有渐变: false ,图片尺寸为(宽*高): 344 * 344 , 图片大小: 7 KB,图片类型: 5\",\"hasAlpha\":false,\"type\":5,\"width\":344,\"height\":344,\"size\":7}\n\t\n\t➜  getPNGInfo git:(master) ✗ java -jar ./getImgInfo.jar head.png\n\t{\"ret\":0,\"msg\":\"图片是否有渐变: true ,图片尺寸为(宽*高): 344 * 344 , 图片大小: 33 KB,图片类型: 6\",\"hasAlpha\":true,\"type\":6,\"width\":344,\"height\":344,\"size\":33}\n\n### tinyjpg.jar\n\n\t➜  getPNGInfo git:(master) ✗ java -jar ./tinyjpg.jar ~/temp/1/head.jpg\n\ttinypng_api_key:QVFA4tI-IBD6Ge4gcCqQX44xTderwr1f\n\thttp_proxy:http://dev-proxy.oa.com:8080\n\t\n\tfile unoptimized size: 8037\n\tfile optimized: /Users/hardyshi/temp/1/head_optimized.jpg\n\tfile optimized size: 4895\n\tfile compress percentage: 39.094193%\n\t\t\t\n## 相关文章\n\n- [如何生成混淆过的可执行的jar程序](http://blog.bihe0832.com/runnable-jar.html)\n\n- [iMac下制作含透明度图片及判断图片透明度](http://blog.bihe0832.com/png_alpha.html)\n\n- [Android安装包精简系列之图片优化](http://blog.bihe0832.com/android-optimize-img.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbihe0832%2Fgetimageinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbihe0832%2Fgetimageinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbihe0832%2Fgetimageinfo/lists"}