{"id":15559216,"url":"https://github.com/mozillazg/image-mime","last_synced_at":"2025-06-26T03:04:42.714Z","repository":{"id":5010689,"uuid":"6169142","full_name":"mozillazg/image-mime","owner":"mozillazg","description":"根据图片内容判断 MIME 类型","archived":false,"fork":false,"pushed_at":"2012-10-15T00:56:12.000Z","size":116,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T18:28:05.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mozilla/allizom_org","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mozillazg.png","metadata":{"files":{"readme":"readme.markdown","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":"2012-10-11T05:39:49.000Z","updated_at":"2018-03-02T02:13:39.000Z","dependencies_parsed_at":"2022-08-19T18:01:17.977Z","dependency_job_id":null,"html_url":"https://github.com/mozillazg/image-mime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mozillazg/image-mime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozillazg%2Fimage-mime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozillazg%2Fimage-mime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozillazg%2Fimage-mime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozillazg%2Fimage-mime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozillazg","download_url":"https://codeload.github.com/mozillazg/image-mime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozillazg%2Fimage-mime/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261990349,"owners_count":23241188,"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":[],"created_at":"2024-10-02T15:42:14.099Z","updated_at":"2025-06-26T03:04:42.672Z","avatar_url":"https://github.com/mozillazg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 根据图片内容判断 MIME 类型\n\n## 支持如下 MIME 类型：\n\n* image/gif\n* image/jpeg\n* image/tiff\n* image/png\n* image/bmp\n* image/x-icon\n* application/octet-stream\n\n## 示例\n\n    \u003e\u003e\u003e with open('test', 'rb') as f:\n    ...     print get_image_mime(f.read())\n    ...\n    image/png\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozillazg%2Fimage-mime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozillazg%2Fimage-mime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozillazg%2Fimage-mime/lists"}