{"id":16103254,"url":"https://github.com/rene78/batch-convert-to-webp","last_synced_at":"2025-04-06T01:43:27.931Z","repository":{"id":202856866,"uuid":"708289108","full_name":"rene78/batch-convert-to-webp","owner":"rene78","description":"A simple script to convert all image files in a folder to the modern .webp format","archived":false,"fork":false,"pushed_at":"2025-03-12T09:53:06.000Z","size":2159,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-12T10:22:47.839Z","etag":null,"topics":["batch-conversion","batch-converter","image-conversion","image-converter","jpg-to-webp","png-to-webp","tiff-to-webp","webp"],"latest_commit_sha":null,"homepage":"https://rene78.github.io/batch-convert-to-webp/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rene78.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,"publiccode":null,"codemeta":null}},"created_at":"2023-10-22T05:09:58.000Z","updated_at":"2025-03-12T09:53:09.000Z","dependencies_parsed_at":"2025-01-25T05:21:17.728Z","dependency_job_id":"08b03a2f-46df-406f-9997-732aa6335720","html_url":"https://github.com/rene78/batch-convert-to-webp","commit_stats":null,"previous_names":["rene78/batch-convert-to-webp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rene78%2Fbatch-convert-to-webp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rene78%2Fbatch-convert-to-webp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rene78%2Fbatch-convert-to-webp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rene78%2Fbatch-convert-to-webp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rene78","download_url":"https://codeload.github.com/rene78/batch-convert-to-webp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423496,"owners_count":20936622,"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":["batch-conversion","batch-converter","image-conversion","image-converter","jpg-to-webp","png-to-webp","tiff-to-webp","webp"],"created_at":"2024-10-09T18:56:26.943Z","updated_at":"2025-04-06T01:43:27.925Z","avatar_url":"https://github.com/rene78.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Batch convert to .webp\nThe script in this repository converts all images within a designated folder into the contemporary WebP format. No need to install software or upload your images to potentially dodgy conversion websites.\n\n## How to use\n\u003cdetails\u003e\n\u003csummary\u003eWindows\u003c/summary\u003e\n\n\u003e **_NOTE:_**  Windows does not natively support the execution of shell scripts. One way to run the script below is to install [Git](https://git-scm.com/) on your computer. Other options are highlighted in [this Stack Overflow thread](https://stackoverflow.com/questions/26522789/how-to-run-sh-on-windows-command-prompt).\n\n1. Download the ***convert.sh*** script and the ***cwebp*** executable files.\n\n    [convert.sh](https://rene78.github.io/batch-convert-to-webp/convert.sh)\n\n    [cwebp (1.4.0-windows-x64)](https://rene78.github.io/batch-convert-to-webp/cwebp.exe)\n\n2. Copy those 2 files to the folder with the images that you want to convert to _.webp_.\n3. Open Git Bash by pressing the \u003ckbd\u003eWindows\u003c/kbd\u003e key and typing `git bash`\n4. Navigate to your image folder:\n\n    `cd link/to/your/image/folder`\n\n5. Start the batch convert process by typing the following command in the terminal window:\n    `sh convert.sh`\n\n6. All _.webp_ files will be saved in a subfolder called ***webp***.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003emacOS\u003c/summary\u003e\n\n1. Download the ***convert.sh*** script and the ***cwebp*** executable files.\n\n    [convert.sh](https://rene78.github.io/batch-convert-to-webp/convert.sh)\n\n    [cwebp (1.4.0-mac-arm64)](https://rene78.github.io/batch-convert-to-webp/cwebp)\n\n2. Copy those 2 files to the folder with the images that you want to convert to _.webp_.\n3. Right-click on this image folder and select `New Terminal at Folder`\n\n    ![Picture of App][screenshot]\n    \n    [screenshot]: img/Screenshot_RMB_Open_Terminal.png \"Select 'New Terminal at Folder'\"\n\n5. Start the batch convert process by typing the following command in the terminal window:\n    `sh convert.sh`\n\n6. All _.webp_ files will be saved in a subfolder called ***webp***.\n\u003c/details\u003e\n\n## Notes\n- The script is based on a [Stack Overflow answer](https://stackoverflow.com/a/26565210/5263954) with some minor additions. Thanks InfinitePrime!\n- It works with jpg, png and tiff files.\n- I have tested it on Mac and Windows 10. If there are issues on Linux machines with the script please report back.\n- You can change the quality level of the converted image file. Go to `convert.sh` and change the number on line 6. 80 is the default value. Higher means better image quality but larger file sizes.\n- `cwebp` was copied from Google's [libwebp codec distribution](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/index.html), version 1.4.0. You might want to update to a later version or use a different one, e.g. for Linux or pre Silicon Macs. The \u003ci\u003ecwebp\u003c/i\u003e executable is saved in the /bin folder.\n- If you want something a little more user friendly with an UI I would recommend the open-source [webp2jpg-online](https://github.com/renzhezhilu/webp2jpg-online), a web app that converts your images locally. You can use the tool completely offline by downloading the html files in the [\"offline\" folder](https://github.com/renzhezhilu/webp2jpg-online/tree/master/offline).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frene78%2Fbatch-convert-to-webp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frene78%2Fbatch-convert-to-webp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frene78%2Fbatch-convert-to-webp/lists"}