{"id":16674436,"url":"https://github.com/settermjd/mezzio-image-compression","last_synced_at":"2026-04-21T08:04:07.909Z","repository":{"id":166572014,"uuid":"642074872","full_name":"settermjd/mezzio-image-compression","owner":"settermjd","description":"A small repository showing how to do simplistic image compression in PHP","archived":false,"fork":false,"pushed_at":"2023-05-19T09:23:19.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T20:15:02.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/settermjd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-05-17T19:06:14.000Z","updated_at":"2024-05-26T15:13:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"5cf4ba25-773c-4be7-b4b6-31a7a38a6326","html_url":"https://github.com/settermjd/mezzio-image-compression","commit_stats":null,"previous_names":["settermjd/mezzio-image-compression"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/settermjd/mezzio-image-compression","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fmezzio-image-compression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fmezzio-image-compression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fmezzio-image-compression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fmezzio-image-compression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settermjd","download_url":"https://codeload.github.com/settermjd/mezzio-image-compression/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2Fmezzio-image-compression/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32082782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2024-10-12T12:43:13.276Z","updated_at":"2026-04-21T08:04:07.875Z","avatar_url":"https://github.com/settermjd.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mezzio Image Compression\n\nThis is a small project showing how to do simplistic image compression in PHP.\n\n## Usage\n\nFirst, install the project, by running the following command.\n\n```bash\ngit clone git@github.com:settermjd/mezzio-image-compression.git\n```\n\nThen, start the application by running the following command.\n\n```bash\ncomposer serve\n```\n\nThen, upload and compress an image by replacing `\u003c\u003cUpload Image\u003e\u003e` and `\u003c\u003cUploaded File Name\u003e\u003e` with the path to an image that you want to upload and a name for the file after being uploaded respective, in the command below, before running it.\n\n```bash\ncurl --silent \\\n    -F image=@\u003c\u003cUpload Image\u003e\u003e http://localhost:8080 \\\n    -F file_name=\"\u003c\u003cUploaded File Name\u003e\u003e\" \\\n    -F image_quality=\"20\" | jq\n```\n\nYou should see output similar to the example below.\n\n```bash\n{\n    \"original file\": {\n        \"File name\": \"/var/www/html/data/uploads/Audacity.png\",\n        \"File size\": 89742,\n        \"File type\": \"image/png\"\n    },\n    \"new file\": {\n        \"File name\": \"/var/www/html/data/uploads/Audacity.jpg\",\n        \"File size\": 35958,\n        \"File type\": \"image/jpeg\"\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Fmezzio-image-compression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettermjd%2Fmezzio-image-compression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Fmezzio-image-compression/lists"}