{"id":21074076,"url":"https://github.com/fgenesis/pngrim","last_synced_at":"2025-07-04T02:35:15.524Z","repository":{"id":6878153,"uuid":"8127359","full_name":"fgenesis/pngrim","owner":"fgenesis","description":"Small utility to remove white borders/halo around PNG textures when rendered with OpenGL","archived":false,"fork":false,"pushed_at":"2015-03-15T23:46:40.000Z","size":1188,"stargazers_count":18,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-30T17:06:44.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/fgenesis.png","metadata":{"files":{"readme":"README","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":"2013-02-10T20:08:22.000Z","updated_at":"2025-01-16T06:04:07.000Z","dependencies_parsed_at":"2022-09-19T11:01:23.738Z","dependency_job_id":null,"html_url":"https://github.com/fgenesis/pngrim","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/fgenesis%2Fpngrim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgenesis%2Fpngrim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgenesis%2Fpngrim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgenesis%2Fpngrim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgenesis","download_url":"https://codeload.github.com/fgenesis/pngrim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251748947,"owners_count":21637418,"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-11-19T19:14:23.717Z","updated_at":"2025-04-30T17:06:49.099Z","avatar_url":"https://github.com/fgenesis.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\npngrim -- fixes white borders of PNG textures\n\nLoads a PNG file and gets rid of the white border that shows up\nif the PNG is used as a texture in OpenGL and scaled down.\nSaves as 32 bit (RGBA) PNG files.\n\nThe \"white border\" problem is originally caused by OpenGL interpolating the\nneighboring pixels of textures, causing color mixing of the affected pixels.\nGraphics programs like photoshop tend to save erased and fully transparent\nareas as plain white with zero alpha. When color mixing is performed,\nthis white shows up because it is mixed with the visible neighboring pixels\n(in both alpha and color).\n\nThis program works similar to the \"Solidify\" filters by\nFlaming Pear Software (http://flamingpear.com), but is less sophisticated,\nfaster, and much simpler to use:\nJust invoke \"./pngrim *.png\" and have all PNGs in the current directory fixed.\n\nIt was a quick hack for me to fix white borders in game textures,\nand is not inteded to be fancy.\nThere will be no visible change to the PNG, but the difference can be seen\nif the alpha channel is removed.\n\nThe graphics included as an example were made by Frances Fawcett.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgenesis%2Fpngrim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgenesis%2Fpngrim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgenesis%2Fpngrim/lists"}