{"id":16401387,"url":"https://github.com/benzhaomin/twitchthumbs","last_synced_at":"2026-06-20T05:32:20.055Z","repository":{"id":95076768,"uuid":"42179002","full_name":"Benzhaomin/twitchthumbs","owner":"Benzhaomin","description":"Serve user profile thumbnails instead of the 300x300 images Twitch has.","archived":false,"fork":false,"pushed_at":"2017-06-22T17:12:19.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T14:22:26.559Z","etag":null,"topics":["thumbnails","twitch","web"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Benzhaomin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-09T13:09:24.000Z","updated_at":"2019-03-05T23:45:57.000Z","dependencies_parsed_at":"2023-04-30T10:47:35.576Z","dependency_job_id":null,"html_url":"https://github.com/Benzhaomin/twitchthumbs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Benzhaomin/twitchthumbs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benzhaomin%2Ftwitchthumbs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benzhaomin%2Ftwitchthumbs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benzhaomin%2Ftwitchthumbs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benzhaomin%2Ftwitchthumbs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Benzhaomin","download_url":"https://codeload.github.com/Benzhaomin/twitchthumbs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benzhaomin%2Ftwitchthumbs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34558894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":["thumbnails","twitch","web"],"created_at":"2024-10-11T05:30:17.869Z","updated_at":"2026-06-20T05:32:20.036Z","avatar_url":"https://github.com/Benzhaomin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TwitchThumbs\n\nServe thumbnails of Twitch profile images. Thumbs are generated on-demand and cached.\n\n# Install\n\nClone the repo, give write access to your server/php-fpm on the `generated` folder\nand you're good to go.\n\n## Clean URLs\n\nIt's better to have clean URLs to work well with all kinds of proxies.\nYou can turn the default `?src=profileimage.png` into a cleaner `/profileimage.png`.\n\nAn Apache .htaccess file is already there, it does some surface validation to just 404\non invalid URLs.\n\nFor Lighttpd you can use the following:\n\n```\nurl.rewrite-once = (\n  \"^/([a-zA-Z0-9%\\-_\\.]+.(jpg|jpeg|png))$\" =\u003e \"/index.php?src=$1\"\n)\n```\n\n# Configuration\n\nYou can just edit the top of index.php to change the path to the folder where generated\nthumbs are put and to change the size of the thumbnail.\n\n# Usage\n\nSimply pass the filename of the profile image and you'll get a raw thumbnail back.\n\nFor instance:\n\n```\n\u003cimg src=\"http://twitchthumbs/nicktron-profile_image-ef3f5b4d21b16f4d-300x300.jpeg\"\u003e\n\n```\n\nException: users with a defaut profile image use `xarth/404_user_300x300.png`,\ndon't just pass `404_user_300x300.png`, you need to urlencode the full string.\n\n# Behind the scenes\n\n```\nif we didn't cache this thumbnail:\n  make 100% sure the request is for a Twitch profile image (to avoid any sort of exploit)\n  load the image from Twitch\n  generate a local thumbnail\n\nif the browser already has the thumbnail:\n  tell him to use that, thumbs never expire\n\nreturn the raw thumbnail\n\n```\n\n# License\n\n\u003e TwitchThumbs, a simple script to generate thumbnails of Twitch profile images.\n\u003e Copyright (C) 2015 Benjamin Maisonnas\n\n\u003e This program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License version 3 as published by\nthe Free Software Foundation.\n\n\u003e This program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\n\u003e You should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/gpl-3.0.en.html\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenzhaomin%2Ftwitchthumbs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenzhaomin%2Ftwitchthumbs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenzhaomin%2Ftwitchthumbs/lists"}