{"id":36255055,"url":"https://github.com/pensiero/image-uploader","last_synced_at":"2026-01-13T22:45:27.798Z","repository":{"id":57037682,"uuid":"79489751","full_name":"pensiero/image-uploader","owner":"pensiero","description":"Upload and resize image to different providers","archived":false,"fork":false,"pushed_at":"2017-02-14T16:44:04.000Z","size":185,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-11T12:43:19.549Z","etag":null,"topics":["aws","composer","filesystem","image","image-uploader","save-handlers","upload","uploader"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/pensiero.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":"2017-01-19T19:58:48.000Z","updated_at":"2023-09-27T19:30:53.000Z","dependencies_parsed_at":"2022-08-24T00:51:04.223Z","dependency_job_id":null,"html_url":"https://github.com/pensiero/image-uploader","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pensiero/image-uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pensiero%2Fimage-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pensiero%2Fimage-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pensiero%2Fimage-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pensiero%2Fimage-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pensiero","download_url":"https://codeload.github.com/pensiero/image-uploader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pensiero%2Fimage-uploader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: 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":["aws","composer","filesystem","image","image-uploader","save-handlers","upload","uploader"],"created_at":"2026-01-11T07:06:39.546Z","updated_at":"2026-01-13T22:45:27.793Z","avatar_url":"https://github.com/pensiero.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Upload\n\nAPI based service that allow to save, resize and read images\n\n\n## Features\n\n- [x] Save on **Filesystem**\n- [x] Save on **AWS**\n- [x] Possibility to add Validators\n- [x] Possibility to add Filters\n- [x] PHP7 strict mode\n- [x] Link with public Postman collection\n- [ ] Unit testing\n- [ ] Submit on packagist (composer)\n- [ ] Host the demo somewhere\n- [ ] Auth token API protection\n\n\n## Configuration\n\nEnvironment variables allowed:\n- `SAVE_HANDLER`: (filesystem|aws) where you will save the images\n- `AWS_ACCESS_KEY_ID`:\n- `AWS_SECRET_ACCESS_KEY`:\n- `AWS_REGION`:\n- `AWS_BUCKET`:\n- `OPTIMIZE`: (0|1) strip exif data in order to reduce image size\n- `MAX_DIMENSIONS`: (example: 4096x4096) maximum allowed dimensions\n- `MAX_SIZE`: (example: 10240) maximum allowed size in kb\n- `ALLOWED_DIMENSIONS`: (example: 1400x460;1280x460;800x600) dimensions allowed when requesting a resize version of a previously uploaded image\n\n\n## Usage via API\n\n[![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/0c7cee4b3b9d99cfbd2f)\n\nIn order to receive a JSON response, you should add the following headers:\n- `Content-Type: application/json`\n- `Accept: application/json; charset=utf-8`\n\n\u003e We are supposing that you uploaded this application on *theappleisonthetable.com*\n\n### GET https://theappleisonthetable.com/\n\n\u003e Return info about a previously uploaded image\n\nParameters:\n- `id`: (*optional*: integer) id of a previously uploaded image\n\nExample GET data: `{}`\n\nExample response:\n```\n  {\n    \"ping\": \"pong\"\n  }\n```\n\n---\n\nExample GET data: `{\"id\": \"5897209a9325f7-78554697\"}`\n\nExample response:\n```\n  {\n    \"status_code\": 200,\n    \"id\": \"5897209a9325f7-78554697\",\n    \"url\": \"http://image-uploader.dev/i/5897209a9325f7-78554697_0_0.jpg\",\n    \"url_dynamic\": \"http://image-uploader.dev/i/5897209a9325f7-78554697_#WIDTH#_#HEIGHT#.jpg\",\n    \"width\": null,\n    \"height\": null\n  }\n```\n\n### POST https://theappleisonthetable.com/\n\n\u003e Upload an image\n\nParameters:\n- `source`: (*required*: url|base64 string|uploaded file) you can send a remote url, an image base64 encoded (without new lines in JSON) or upload a file (see an example in the [public/upload.php](../tree/master/public/upload.php)\n- `width`: (*optional*: integer) if specified, the original image will be resized to the specified width before uploading it\n- `height`: (*optional*: integer) if specified, the original image will be resized to the specified height before uploading it\n\n\u003e Note: if you specify only the `width` or the `height` param, the image will be proportionally resized\n\nExample POST data: `{\"source\": \"...very long base64 string...\"}`\n\nExample response:\n```\n  {\n    \"status_code\": 200,\n    \"id\": \"5898c96c4a2d62-52410036\",\n    \"url\": \"http://image-uploader.dev/i/5898c96c4a2d62-52410036_0_0.jpg\",\n    \"url_dynamic\": \"http://image-uploader.dev/i/5898c96c4a2d62-52410036_#WIDTH#_#HEIGHT#.jpg\",\n    \"width\": null,\n    \"height\": null\n  }\n```\n\n\n## Demo\n\nHosting in progress...\n\n\n## Examples\n\nIf you want to use directly the [Image](../tree/master/src/ImageUploader/Entity/Image.php) object in your application\n(and not as a standalone API service), you can find some examples inside the\n[public/examples](../tree/master/public/examples) directory.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpensiero%2Fimage-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpensiero%2Fimage-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpensiero%2Fimage-uploader/lists"}