{"id":13413193,"url":"https://github.com/corona10/goimghdr","last_synced_at":"2025-04-12T17:12:47.726Z","repository":{"id":57496854,"uuid":"122822385","full_name":"corona10/goimghdr","owner":"corona10","description":"The imghdr module determines the type of image contained in a file for go","archived":false,"fork":false,"pushed_at":"2019-06-14T10:13:28.000Z","size":453,"stargazers_count":40,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T17:12:42.298Z","etag":null,"topics":["go","imghdr"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/corona10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-25T09:34:44.000Z","updated_at":"2024-07-27T16:45:37.000Z","dependencies_parsed_at":"2022-09-03T02:30:47.471Z","dependency_job_id":null,"html_url":"https://github.com/corona10/goimghdr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corona10%2Fgoimghdr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corona10%2Fgoimghdr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corona10%2Fgoimghdr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corona10%2Fgoimghdr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corona10","download_url":"https://codeload.github.com/corona10/goimghdr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602312,"owners_count":21131616,"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":["go","imghdr"],"created_at":"2024-07-30T20:01:34.840Z","updated_at":"2025-04-12T17:12:47.704Z","avatar_url":"https://github.com/corona10.png","language":"Go","funding_links":[],"categories":["Images 图像处理","Images","图片","Relational Databases"],"sub_categories":["SQL 查询语句构建库","Search and Analytic Databases","检索及分析资料库","Advanced Console UIs"],"readme":"[![Build Status](https://travis-ci.org/corona10/goimghdr.svg?branch=master)](https://travis-ci.org/corona10/goimghdr)\n[![GoDoc](https://godoc.org/github.com/corona10/goimghdr?status.svg)](https://godoc.org/github.com/corona10/goimghdr)\n[![Go Report Card](https://goreportcard.com/badge/github.com/corona10/goimghdr)](https://goreportcard.com/report/github.com/corona10/goimghdr)\n[![Coverage Status](https://coveralls.io/repos/github/corona10/goimghdr/badge.svg?branch=coverall)](https://coveralls.io/github/corona10/goimghdr?branch=coverall)\n\n# goimghdr\n\u003e Inspired by Python's [imghdr](https://docs.python.org/3/library/imghdr.html)\n\n## Installation\n```\ngo get github.com/corona10/goimghdr\n```\n\n## List of return value\n\n| Value  | Image format                      |\n|--------|-----------------------------------|\n| \"rgb\"  | SGI ImgLib Files                  |\n| \"gif\"  | GIF 87a and 89a Files             |\n| \"pbm\"  | Portable Bitmap Files             |\n| \"pgm\"  | Portable Graymap Files            |\n| \"ppm\"  | Portable Pixmap Files             |\n| \"tiff\" | TIFF Files                        |\n| \"rast\" | Sun Raster Files                  |\n| \"xbm\"  | X Bitmap Files                    |\n| \"jpeg\" | JPEG data in JFIF or Exif formats |\n| \"bmp\"  | BMP files                         |\n| \"png\"  | Portable Network Graphics         |\n| \"webp\" | WebP files                        |\n| \"exr\"  | OpenEXR Files                     |\n\n## Usage\n\n[example](examples/example.go)\n\n[![asciicast](https://asciinema.org/a/zfh9TERizU7RcSAxXo9ioKQq4.png)](https://asciinema.org/a/zfh9TERizU7RcSAxXo9ioKQq4)\n\n## Special thanks to\n* [Haeun Kim](https://github.com/haeungun/)\n\n## Reference\n* [CPython imghdr module](https://docs.python.org/3/library/imghdr.html)\n* [DSCN0029.jpg](imgData/DSCN0029.jpg) is from [ianare/exif-samples](https://github.com/ianare/exif-samples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorona10%2Fgoimghdr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorona10%2Fgoimghdr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorona10%2Fgoimghdr/lists"}