{"id":29001420,"url":"https://github.com/byteface/pythumb","last_synced_at":"2026-02-07T07:31:00.290Z","repository":{"id":31077724,"uuid":"34636700","full_name":"byteface/pythumb","owner":"byteface","description":"base64 thumbnail generator","archived":false,"fork":false,"pushed_at":"2015-04-27T23:18:48.000Z","size":504,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-03T12:15:19.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/byteface.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":"2015-04-26T23:47:27.000Z","updated_at":"2024-12-25T22:51:06.000Z","dependencies_parsed_at":"2022-09-09T03:31:30.060Z","dependency_job_id":null,"html_url":"https://github.com/byteface/pythumb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byteface/pythumb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fpythumb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fpythumb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fpythumb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fpythumb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byteface","download_url":"https://codeload.github.com/byteface/pythumb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteface%2Fpythumb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29189250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-06-25T09:03:38.362Z","updated_at":"2026-02-07T07:31:00.277Z","avatar_url":"https://github.com/byteface.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"#PyThumb\n\nPass in images urls, returns base64 strings. use for things like thumbnails\n\nCurrently just pass 2 params. http path to image and a width constraint. i.e.\n```\nhttp://localhost:5000/thumbnail?image=http://127.0.0.1:5000/static/img/landscape.png?w=100\n```\nwill return something like...\n```\ndata:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAABLCAIAAACwbjOoAAAd4UlEQVR4nE16Waxm2XXWt9ba+0z/f+d...\n```\n\nFor a working example run the app and also check out the code in...\nserver.py\nindex.html\n\nthat's as much as I need it for at the mo, Saves having to create/manage thumbnail images on the server as I can just create them on request.\n\n##RUN\nto run the example create a virutal environment and install the requirements, then run\n```\npython server.py\n```\n\n##lists\nif you like Flask checkout the list renderer http://localhost:5000/list\n\nand the list.html template for implementation\n\n\nimg folder contains a mixture of PNGS and JPG files to play with\n\n\n##NOTE\nI had to use threaded=True parameter in the flask app or it would just lock up when making the image request. I think it only happens when loading images from localhost? I think that port was busy serving my app, either that or something to do with proxies? anyways I had issues with the 'requests' library and urllib and urllib2. Spent ages trying to figure out why but that resovled it. see at the bottom of the app...\n```\napp.run(threaded=True)\n```\n\n##YOU WILL NEED TO CONFIG STUFF DEPENDING ON PLATFORM\nhttp://stackoverflow.com/questions/8915296/python-image-library-fails-with-message-decoder-jpeg-not-available-pil\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteface%2Fpythumb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyteface%2Fpythumb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteface%2Fpythumb/lists"}