{"id":24626678,"url":"https://github.com/ziggi/zimg-host","last_synced_at":"2025-05-07T18:50:07.450Z","repository":{"id":11443417,"uuid":"13901185","full_name":"ziggi/zimg-host","owner":"ziggi","description":"Simple image hosting service","archived":false,"fork":false,"pushed_at":"2018-09-03T12:44:49.000Z","size":532,"stargazers_count":73,"open_issues_count":5,"forks_count":18,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-17T03:43:31.605Z","etag":null,"topics":["css","gd","hosting","image","image-host","javascript","material-design-lite","php"],"latest_commit_sha":null,"homepage":"https://img.ziggi.org/","language":"PHP","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/ziggi.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":"2013-10-27T13:01:00.000Z","updated_at":"2023-08-08T19:12:23.000Z","dependencies_parsed_at":"2022-09-17T10:31:02.018Z","dependency_job_id":null,"html_url":"https://github.com/ziggi/zimg-host","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziggi%2Fzimg-host","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziggi%2Fzimg-host/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziggi%2Fzimg-host/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziggi%2Fzimg-host/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziggi","download_url":"https://codeload.github.com/ziggi/zimg-host/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235538065,"owners_count":19006075,"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":["css","gd","hosting","image","image-host","javascript","material-design-lite","php"],"created_at":"2025-01-25T04:49:30.638Z","updated_at":"2025-01-25T04:49:31.317Z","avatar_url":"https://github.com/ziggi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zimg-host\n\nSimple image hosting service\n\n# Demo\n\nhttp://img.ziggi.org/\n\n# Backend requirement\n\n- PHP \u003e= 5.3.0\n- GD extension\n\n# Installation\n\n- Copy files into your website directory (subdirectories are supported)\n- Change config.php if you need\n- Make sure that the file/ directory is writable by web server\n\n# Config for nginx\n\nIf you are using nginx instead Apache, this configuration example can be useful to you:\n```\nlocation / {\n\ttry_files $uri $uri/ /index.php?$args;\n}\n```\n\n# Usage in CURL\n\nYou can upload images using CURL.\n\nSome examples:\n```\ncurl -F files[]=@image.jpg http://img.ziggi.org/api/upload.php\ncurl -F files[]=@image1.jpg -F files[]=@image2.jpg http://img.ziggi.org/api/upload.php\ncurl -F urls[]=http://i.imgur.com/VCcArdF.jpg?1 http://img.ziggi.org/api/upload.php\ncurl -F urls[]=http://i.imgur.com/VCcArdF.jpg?1 -F urls[]=http://i.imgur.com/hdsdwsS.jpg?1 http://img.ziggi.org/api/upload.php\n```\n\nPassword protect upload:\n```\ncurl -u whatever:YOUR_PASSWORD -F urls[]=http://i.imgur.com/VCcArdF.jpg?1 http://img.ziggi.org/api/upload.php\n```\n\nexample of result string (formatted for readability):\n```json\n[\n\t{\n\t\t\"name\":\"image1.jpg\",\n\t\t\"type\":2,\n\t\t\"size\":\n\t\t{\n\t\t\t\"width\":420,\n\t\t\t\"height\":336,\n\t\t\t\"filesize\":26834\n\t\t},\n\t\t\"error\":\n\t\t{\n\t\t\t\"upload\":0,\n\t\t\t\"type\":0,\n\t\t\t\"size\":0\n\t\t},\n\t\t\"url\":\"mijhmyhS.jpg\"\n\t},\n\t{\n\t\t\"name\":\"image2.jpg\",\n\t\t\"type\":2,\n\t\t\"size\":\n\t\t{\n\t\t\t\"width\":703,\n\t\t\t\"height\":442,\n\t\t\t\"filesize\":88604\n\t\t},\n\t\t\"error\":\n\t\t{\n\t\t\t\"upload\":0,\n\t\t\t\"type\":0,\n\t\t\t\"size\":0\n\t\t},\n\t\t\"url\":\"GyDIPAGC.jpg\"\n\t}\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziggi%2Fzimg-host","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziggi%2Fzimg-host","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziggi%2Fzimg-host/lists"}