{"id":41254632,"url":"https://github.com/c1982/secureimage","last_synced_at":"2026-01-23T01:48:18.779Z","repository":{"id":57518149,"uuid":"131989403","full_name":"c1982/secureimage","owner":"c1982","description":"Small image verification package for Go","archived":false,"fork":false,"pushed_at":"2020-04-28T22:59:45.000Z","size":623,"stargazers_count":22,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-06-20T11:54:38.298Z","etag":null,"topics":["golang","image","security","upload","verification"],"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/c1982.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-05-03T12:08:00.000Z","updated_at":"2024-06-20T11:54:38.299Z","dependencies_parsed_at":"2022-09-26T18:01:37.959Z","dependency_job_id":null,"html_url":"https://github.com/c1982/secureimage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c1982/secureimage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1982%2Fsecureimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1982%2Fsecureimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1982%2Fsecureimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1982%2Fsecureimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c1982","download_url":"https://codeload.github.com/c1982/secureimage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1982%2Fsecureimage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28677711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"ssl_error","status_checked_at":"2026-01-23T01:00:19.529Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","image","security","upload","verification"],"created_at":"2026-01-23T01:48:15.655Z","updated_at":"2026-01-23T01:48:18.769Z","avatar_url":"https://github.com/c1982.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# secureimage\nTR: Go web uygulamalarında upload edilen resim dosyalarının güvenilir olup, olmadığını kontrol eden küçük bir doğrulama paketidir.\nBu paket sadece gif, jpeg ve png dosya formatlarını doğrular.\n\nEN: This is a small verification package that checks whether image files uploaded in Go web applications are reliable.\nThis package only supports gif, jpeg and png file formats.\n\n## Install\n\n```bash\ngo get github.com/c1982/secureimage\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"github.com/c1982/secureimage\"\n)\n\nfunc main() {\n\ttrusted, err := secureimage.Check(\"./uploads/tmp_test.jpg\")\n\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tif trusted {\n\t\tfmt.Println(\"file is trusted.\")\n\t} else {\n\t\tfmt.Println(\"bad file\")\n\t}\n}\n```\n## Todos\n\n- [x] Magic Bytes check\n- [x] Validate image file format\n- [x] Clean exif data in jpeg format\n\n## Credits\n\n * [Oğuzhan](https://github.com/c1982)\n\n## License\n\nThe MIT License (MIT) - see LICENSE.md for more details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc1982%2Fsecureimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc1982%2Fsecureimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc1982%2Fsecureimage/lists"}