{"id":48356939,"url":"https://github.com/green-coding-solutions/png2webp","last_synced_at":"2026-04-05T11:33:46.171Z","repository":{"id":216566456,"uuid":"741667956","full_name":"green-coding-solutions/png2webp","owner":"green-coding-solutions","description":"A little service that converts png/jpg to webp or avif","archived":false,"fork":false,"pushed_at":"2024-02-15T10:45:27.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-16T07:35:14.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/green-coding-solutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-01-10T21:34:40.000Z","updated_at":"2024-01-10T21:44:04.000Z","dependencies_parsed_at":"2024-02-04T20:54:56.887Z","dependency_job_id":null,"html_url":"https://github.com/green-coding-solutions/png2webp","commit_stats":null,"previous_names":["green-coding-berlin/png2webp","green-coding-solutions/png2webp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/green-coding-solutions/png2webp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coding-solutions%2Fpng2webp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coding-solutions%2Fpng2webp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coding-solutions%2Fpng2webp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coding-solutions%2Fpng2webp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/green-coding-solutions","download_url":"https://codeload.github.com/green-coding-solutions/png2webp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coding-solutions%2Fpng2webp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31434624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"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":[],"created_at":"2026-04-05T11:33:45.743Z","updated_at":"2026-04-05T11:33:46.142Z","avatar_url":"https://github.com/green-coding-solutions.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# png2webp\nA little service that converts png/jpg to webp or avif\n\nIt is quite simple actually. You either give the script `png2webp.sh` a directory or a git link. If you give it a git repo it will clone it and do the optimization in there. If you give it a directory it will obviously change everything in there.\n\nThe script takes two parameters that are optional:\n- `-q int`: Which is the quality webp should use. Defaults to 80\n- `-d`: This will delete all unused files. This should be fairly save to use and should be the default but I don't want to delete per default.\n- `-c`: This will check if there are the strings `.png` or `.jpg` somewhere in the code. This is because quite often image names are dynamically created in code and we will currently not match these.\n\nIMPORTANT! Please always make backup of your files. This script does not make backups it assumes you are working on git and all your files are secured! If this is not the case PLEASE make a copy of the directory before calling the script. IT WILL EDIT FILES!!!\n\nAlso please always test the result. Like everything this script is not perfect\n\n## Install\n\n```\ngit clone https://github.com/green-coding-solutions/png2webp.git\ncd png2webp\nchmod a+x png2webp.sh\n```\n\n## Docker\n\nYou can also use the script as a docker container.\n\n```\ndocker build -t png2webp .\ndocker run --rm png2webp https://github.com/green-coding-solutions/website.git\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen-coding-solutions%2Fpng2webp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreen-coding-solutions%2Fpng2webp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen-coding-solutions%2Fpng2webp/lists"}