{"id":21952018,"url":"https://github.com/systangotechnologies/serverless-node-simple-image-resize","last_synced_at":"2025-06-10T21:11:02.627Z","repository":{"id":79336225,"uuid":"186600472","full_name":"SystangoTechnologies/serverless-node-simple-image-resize","owner":"SystangoTechnologies","description":"Simple image resize AWS lambda function","archived":false,"fork":false,"pushed_at":"2019-05-14T10:43:20.000Z","size":11,"stargazers_count":75,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T04:07:48.325Z","etag":null,"topics":["aws","aws-lambda","image-resize","lambda","serverless","serverless-framework","systango"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/SystangoTechnologies.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-14T10:32:57.000Z","updated_at":"2023-04-05T07:57:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"e470bdaa-77f3-4f9b-8c54-a7ec23e7e986","html_url":"https://github.com/SystangoTechnologies/serverless-node-simple-image-resize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystangoTechnologies%2Fserverless-node-simple-image-resize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystangoTechnologies%2Fserverless-node-simple-image-resize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystangoTechnologies%2Fserverless-node-simple-image-resize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystangoTechnologies%2Fserverless-node-simple-image-resize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SystangoTechnologies","download_url":"https://codeload.github.com/SystangoTechnologies/serverless-node-simple-image-resize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystangoTechnologies%2Fserverless-node-simple-image-resize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259152602,"owners_count":22813217,"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":["aws","aws-lambda","image-resize","lambda","serverless","serverless-framework","systango"],"created_at":"2024-11-29T06:19:09.969Z","updated_at":"2025-06-10T21:11:01.130Z","avatar_url":"https://github.com/SystangoTechnologies.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serverless-node-simple-image-resize\n\nSimple AWS lambda serverless function for resizing images. The function resizes the image based on input parameters for size and upload the image on AWS S3.\n\n## Setup\nRun the following commands\n```sh\n$ npm install -g serverless # Install serverless globally\n$ serverless config credentials --provider aws --key \u003cAWS Access Key ID\u003e --secret \u003cAWS Secret Access Key\u003e # Setting up default aws credentials\n$ cd aws-serverless-image-resize\n$ npm install # Installing dependency\n```\n\n## Deployment\n```sh\n$ serverless deploy # Deploying serverless function to aws\n```\n\nBy this command `serverless deploy` you should be able to see the lambda function in your aws lambda dashboard and it should have returned an endpoint and api_key in your terminal keep these for now.\n\nSetup the following variables into your aws lambda function \n- ACCESS_KEY_ID (AWS account access key)\n- SECRET_ACCESS_KEY (AWS account secret key)\n- BUCKET (S3 bucket name where resized images will get uploaded)\n\n## Running\n\nRun ```export MY_API_KEY=\u003cany random key value for your lambda function\u003e```\n\nMake a GET API call with to the endpoint and send x-api-key into headers with the api_key value returned after deploy command. The API supports the following query parameters\n- imageUrl (A public URL of the image you want to resize)\n- width or height (One of the following parameter for desired image size)\n\n```\u003cAPI_URL\u003e?imageUrl=https://s3.amazonaws.com/towlot-portal-images/1551975541895.jpeg\u0026height=200```\n\nThe API call will return the image URL that has been added to your S3 account.\n\n## Running by postman collection\n\n- Import the postman collection and set the endpoint and x-api-key and make a hit.\n\n## Contributors\n\n[Sparsh Pipley](https://in.linkedin.com/in/sparsh-pipley-6ab0b1a4/)\n\n## License\n\nBuilt under [MIT](http://www.opensource.org/licenses/mit-license.php) license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystangotechnologies%2Fserverless-node-simple-image-resize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystangotechnologies%2Fserverless-node-simple-image-resize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystangotechnologies%2Fserverless-node-simple-image-resize/lists"}