{"id":13813824,"url":"https://github.com/phuslu/fastimage","last_synced_at":"2026-02-07T03:04:08.600Z","repository":{"id":57545633,"uuid":"297993476","full_name":"phuslu/fastimage","owner":"phuslu","description":"Fast Image Type,Width,Height detection for go, up to 16 image formats support. ","archived":false,"fork":false,"pushed_at":"2020-09-30T10:07:41.000Z","size":265,"stargazers_count":34,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-15T01:37:08.626Z","etag":null,"topics":["bmp","gif","image","jpeg","mng","pcx","png","psd","tiff","webp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phuslu.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":"2020-09-23T14:18:12.000Z","updated_at":"2024-12-21T12:30:33.000Z","dependencies_parsed_at":"2022-09-26T18:40:32.519Z","dependency_job_id":null,"html_url":"https://github.com/phuslu/fastimage","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/phuslu/fastimage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuslu%2Ffastimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuslu%2Ffastimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuslu%2Ffastimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuslu%2Ffastimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phuslu","download_url":"https://codeload.github.com/phuslu/fastimage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuslu%2Ffastimage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29185120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"online","status_checked_at":"2026-02-07T02:00:07.217Z","response_time":63,"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":["bmp","gif","image","jpeg","mng","pcx","png","psd","tiff","webp"],"created_at":"2024-08-04T04:01:31.783Z","updated_at":"2026-02-07T03:04:08.580Z","avatar_url":"https://github.com/phuslu.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# fastimage - fast image info for go\n\n[![godoc][godoc-img]][godoc] [![release][release-img]][release] [![goreport][goreport-img]][goreport] [![coverage][coverage-img]][coverage]\n\n## Features\n\n* Zero Dependencies - no std/3rd imports\n* High Performance - hand-wringing DFA instead of regex/wildcard expression\n* Widely Format - bmp/bpm/gif/jpeg/mng/pbm/pcx/pgm/png/ppm/psd/ras/tiff/webp/xbm/xpm\n\n### Getting Started\n\ntry on https://play.golang.org/p/8yHaCknD1Rm\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/phuslu/fastimage\"\n)\n\nvar data = []byte(\"RIFF,-\\x00\\x00WEBPVP8X\\n\\x00\\x00\\x00\" +\n    \"\\x10\\x00\\x00\\x00\\x8f\\x01\\x00,\\x01\\x00VP8X\\n\\x00\\x00\\x00\\x10\\xb2\" +\n    \"\\x01\\x00\\x00WEB\\x01\\x00VP8X\\n\\x00\\x00\\x00\\x10\\xb2\\x01\\x00\" +\n    \"\\x00WEB\\x01\\x00VP8X\\n\\x00\\x00\\x00\\x10\\xb2\\x01\\x00\\x00W\" +\n    \"EB\\x01\\x00VP8X\\n\\x00\\x00\\x00\\x10\\xb2\\x01\\x00\\x00WEB\"\")\n\nfunc main() {\n\tfmt.Printf(\"%+v\\n\", fastimage.GetInfo(data))\n}\n\n// Output: {Type:webp Width:400 Height:301}\n```\n\n### Command Tool\n```bash\n$ go get github.com/phuslu/fastimage/cmd/fastimage\n$ fastimage banner.png\npng image/png 320 50\n```\n\n[godoc-img]: http://img.shields.io/badge/godoc-reference-blue.svg\n[godoc]: https://godoc.org/github.com/phuslu/fastimage\n[release-img]: https://img.shields.io/github/v/tag/phuslu/fastimage?label=release\n[release]: https://github.com/phuslu/fastimage/releases\n[goreport-img]: https://goreportcard.com/badge/github.com/phuslu/fastimage\n[goreport]: https://goreportcard.com/report/github.com/phuslu/fastimage\n[coverage-img]: http://gocover.io/_badge/github.com/phuslu/fastimage\n[coverage]: https://gocover.io/github.com/phuslu/fastimage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuslu%2Ffastimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphuslu%2Ffastimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuslu%2Ffastimage/lists"}