{"id":37072316,"url":"https://github.com/hemansah/resmushit","last_synced_at":"2026-01-14T08:29:18.108Z","repository":{"id":233172722,"uuid":"786232954","full_name":"hemansah/resmushit","owner":"hemansah","description":"A python wrapper for reSmush.it API","archived":false,"fork":false,"pushed_at":"2024-05-04T13:25:28.000Z","size":7187,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-07T01:51:43.454Z","etag":null,"topics":["image-processing","imageoptimizer","open-source"],"latest_commit_sha":null,"homepage":"https://resmush.it/","language":"Python","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/hemansah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2024-04-13T20:25:31.000Z","updated_at":"2025-04-22T20:04:00.000Z","dependencies_parsed_at":"2024-05-04T08:27:46.447Z","dependency_job_id":null,"html_url":"https://github.com/hemansah/resmushit","commit_stats":null,"previous_names":["hemansah/resmushit"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/hemansah/resmushit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemansah%2Fresmushit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemansah%2Fresmushit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemansah%2Fresmushit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemansah%2Fresmushit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hemansah","download_url":"https://codeload.github.com/hemansah/resmushit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemansah%2Fresmushit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:16:59.381Z","status":"ssl_error","status_checked_at":"2026-01-14T08:13:45.490Z","response_time":107,"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":["image-processing","imageoptimizer","open-source"],"created_at":"2026-01-14T08:29:16.702Z","updated_at":"2026-01-14T08:29:18.091Z","avatar_url":"https://github.com/hemansah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reSmush.it Image Optimizer Python package\n\n[![Downloads](https://static.pepy.tech/badge/resmushit)](https://pepy.tech/project/resmushit)\n![Tests](https://github.com/hemansah/resmushit/actions/workflows/tests.yaml/badge.svg?branch=master)  \n\n## Project Description\n\nPython3 wrapper for resmush.it API to optimize image file size.\n\n    \n\n[resmush.it](https://resmush.it/) Image Optimizer allows you to use free Image optimization based on reSmush.it API.\n\nreSmush.it provides image size reduction based on several algorithms. The API accept JPG, PNG and GIF files up to 5MB.\n\n\n\n## Installation\n\n1. Install using pip3:\n\n  \n\n    `$ pip3 install resmushit`\n\n  \n\n## Usage\n\n```\nimport resmushit\n\n# Save image to current directory\nresmushit.from_path(image_path='image.png', quality=95) \n\n# Save image to preferred directory\nresmushit.from_path(image_path='image.png', quality=95, output_dir=\"output/\") \n\n# return image bytes\n_bytes = resmushit.from_url(image_url=\"https://ps.w.org/resmushit-image-optimizer/assets/icon-128x128.png\", quality=95, save=False)\n\n```\n\n  \n\n## Options\n\n```\nimage_url (str): The url of image.\n\nimage_path (str): The path of image\n\nquality (int): Quality at which image is going to be optimized.\n\noutput_dir (str): Location for output image.\n\npreserve_exif (bool): Preserve EXIF data in the file after optimization.\n\npreserve_filename (bool): Optimized image will prefix 'optimized-' before image name.\n\nquiet_mode (bool): Run in quiet mode when True\n\nsave (bool): When True, saves image in directory.\n             When False, returns bytes of image.             \n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemansah%2Fresmushit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemansah%2Fresmushit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemansah%2Fresmushit/lists"}