{"id":24178842,"url":"https://github.com/m-murad/compressor-head","last_synced_at":"2025-09-21T00:31:18.519Z","repository":{"id":144340818,"uuid":"85208353","full_name":"m-murad/compressor-head","owner":"m-murad","description":"Server-side image compression solution.","archived":false,"fork":false,"pushed_at":"2019-11-24T20:04:26.000Z","size":5958,"stargazers_count":5,"open_issues_count":0,"forks_count":36,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T17:13:56.522Z","etag":null,"topics":["compression","conversion","convert-image","google-app-engine","google-appengine","google-cloud-platform","image","image-compression","image-compressor","image-downloader","memcache","remote","resize","resize-images"],"latest_commit_sha":null,"homepage":"http://compressor-head.appspot.com/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-murad.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2017-03-16T14:58:14.000Z","updated_at":"2022-02-18T17:51:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea2e915f-f469-4b62-99a5-17363cdb4f1e","html_url":"https://github.com/m-murad/compressor-head","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m-murad/compressor-head","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-murad%2Fcompressor-head","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-murad%2Fcompressor-head/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-murad%2Fcompressor-head/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-murad%2Fcompressor-head/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-murad","download_url":"https://codeload.github.com/m-murad/compressor-head/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-murad%2Fcompressor-head/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276179271,"owners_count":25598565,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["compression","conversion","convert-image","google-app-engine","google-appengine","google-cloud-platform","image","image-compression","image-compressor","image-downloader","memcache","remote","resize","resize-images"],"created_at":"2025-01-13T05:14:16.231Z","updated_at":"2025-09-21T00:31:18.507Z","avatar_url":"https://github.com/m-murad.png","language":"Go","readme":"# compressor-head\nThis application allows a user to compress/resize and convert an image before downloading it. This saves the user data that otherwise would be used to download big images. Also I have used the GCP memcache library which speeds up the process if same image is being retrieved by multiple users.\n## Usage\n*URL* - ```http://compressor-head.appspot.com/image/?image_url=[IMAGE_URL]\u0026width=[WIDTH]\u0026height=[HEIGHT]\u0026format=[FORMAT]```\n\nwhere\n\n    *IMAGE_URL* is the URL of the image which is to be compressed.\n    *WIDTH* is the desired width. \n    *HEIGHT* is the desired height.\n    *FORMAT* is the desired image format (Supported formats - JPEG, PNG, WEBP, GIF, BMP, TIFF).\nBoth WIDTH and HEIGHT should be positive integers. Both WIDTH and HEIGHT cannot be zero. If one of the two is zero it will scale that non-zero dimension and the other dimension will be scaled such that the aspect ratio remains the same. If both are not zero, both dimensions will scale accordingly which might change the aspect ratio of the image.  \n#### Usage example\nSample Image URL - http://compressor-head.appspot.com/image  \nThis is a `5.8 MB JPEG` image. Dimension `5649×3684`  \n![](http://compressor-head.appspot.com/image)  \n\nTo resize the image - \n- Resize (Width) : `http://compressor-head.appspot.com/image/?image_url=http://compressor-head.appspot.com/image\u0026width=500\u0026height=0\u0026format=jpeg`  \n![](http://compressor-head.appspot.com/image/?image_url=http://compressor-head.appspot.com/image\u0026width=500\u0026height=0\u0026format=jpeg)  \nThis will return an image `37 KB JPEG` image with dimensions `500x326`\n\n- Resize (Height) : `http://compressor-head.appspot.com/image/?image_url=http://compressor-head.appspot.com/image\u0026width=0\u0026height=250\u0026format=png`  \n![](http://compressor-head.appspot.com/image/?image_url=http://compressor-head.appspot.com/image\u0026width=0\u0026height=250\u0026format=png)  \nThis will return an image `164 KB PNG` image with dimensions `383x250`\n\n- Resize (Width \u0026 Height) : `http://compressor-head.appspot.com/image/?image_url=http://compressor-head.appspot.com/image\u0026width=500\u0026height=350\u0026format=jpeg`  \n![](http://compressor-head.appspot.com/image/?image_url=http://compressor-head.appspot.com/image\u0026width=500\u0026height=350\u0026format=jpeg)  \nThis will return an image `41 KB JPEG` image with dimensions `500x350`\n\n## Author\n[@m-murad](https://github.com/m-murad)  \n\n## License\n[Apache Version 2.0](http://compressor-head.appspot.com/license)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-murad%2Fcompressor-head","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-murad%2Fcompressor-head","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-murad%2Fcompressor-head/lists"}