{"id":15389176,"url":"https://github.com/splitbrain/file-icon-generator","last_synced_at":"2025-07-28T21:09:03.120Z","repository":{"id":14182020,"uuid":"16888251","full_name":"splitbrain/file-icon-generator","owner":"splitbrain","description":"Generate consistent pixel perfect file icons","archived":false,"fork":false,"pushed_at":"2014-03-06T23:53:44.000Z","size":268,"stargazers_count":38,"open_issues_count":0,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-15T19:49:18.918Z","etag":null,"topics":["icons","php","png"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/splitbrain.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}},"created_at":"2014-02-16T16:10:27.000Z","updated_at":"2025-03-10T07:42:20.000Z","dependencies_parsed_at":"2022-07-10T05:30:31.021Z","dependency_job_id":null,"html_url":"https://github.com/splitbrain/file-icon-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/splitbrain/file-icon-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Ffile-icon-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Ffile-icon-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Ffile-icon-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Ffile-icon-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splitbrain","download_url":"https://codeload.github.com/splitbrain/file-icon-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Ffile-icon-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267585826,"owners_count":24111577,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["icons","php","png"],"created_at":"2024-10-01T14:59:37.829Z","updated_at":"2025-07-28T21:09:03.081Z","avatar_url":"https://github.com/splitbrain.png","language":"PHP","readme":"File Icon Generator\n===================\n\nThis class can build pixel-perfect file type icons based on a extension name\nand its associated mime type.\n\nIcons are build based on a template file on which then a colored label with\nthe extension is printed. This makes it easy to create a consistent look in\nyour application without the problem of missing the icon for a certain file\ntype.\n\nCurrently 16x16 and 32x32 images can be generated.\n\n![Example Screenshot](example.png)\n\nUsage\n-----\n\nSee createall.php for building all icons at once, otherwise just refer to the\nsource code comments. It's relatively straight forward.\n\nMIME matching\n-------------\n\nColor and template files are first matched against a ```extension-\u003cext\u003e```\nentry. If that is not found the mime type is matched.\n\nFor matching mime types in color and template setup the mime type of an extension\nis broken up parts at the charcters ```/```, ```.``` and ```-``` and connected\nwith a ```-``` again.\n\nPartial matches are then tried per segment. Example:\n\n```application/vnd.openxmlformats-officedocument.wordprocessingml.document``` becomes\n```application-vnd-openxmlformats-officedocument-wordprocessingml-document```. It\ncould be matched with ```application-vnd-openxmlformats``` or ```application```. The\nlongest match wins. Note: ```wordprocessingml``` would not match!\n\nTodo\n----\n\nThis can be improved, pull requests more than welcome!\n\n* define more colors\n* create more templates for common formats\n* add more output sizes\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitbrain%2Ffile-icon-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplitbrain%2Ffile-icon-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitbrain%2Ffile-icon-generator/lists"}