{"id":21259877,"url":"https://github.com/saltiola7/webpy","last_synced_at":"2025-03-15T06:43:11.097Z","repository":{"id":220742310,"uuid":"752480806","full_name":"Saltiola7/WEBPy","owner":"Saltiola7","description":"This Python application monitors a specified directory for new image files (JPG, JPEG, PNG) and automatically converts them to the WebP format.","archived":false,"fork":false,"pushed_at":"2024-09-04T22:08:34.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T02:42:18.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Saltiola7.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":"2024-02-04T00:46:46.000Z","updated_at":"2024-09-04T22:08:37.000Z","dependencies_parsed_at":"2024-09-06T05:21:47.359Z","dependency_job_id":null,"html_url":"https://github.com/Saltiola7/WEBPy","commit_stats":null,"previous_names":["saltiola7/webpy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saltiola7%2FWEBPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saltiola7%2FWEBPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saltiola7%2FWEBPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saltiola7%2FWEBPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saltiola7","download_url":"https://codeload.github.com/Saltiola7/WEBPy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695513,"owners_count":20332626,"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":[],"created_at":"2024-11-21T04:15:37.041Z","updated_at":"2025-03-15T06:43:11.067Z","avatar_url":"https://github.com/Saltiola7.png","language":"Python","readme":"# WebP Image Converter for Mac\n\nThis Python application monitors a specified directory for new image files (JPG, JPEG, PNG) and automatically converts them to the WebP format. It's optimized for 16\" Retina displays, ensuring high-quality images with reduced file sizes for web use. The application uses the Watchdog library to watch for new files and ImageMagick for the conversion process.\n\n## Features\n\n- **Automatic Conversion**: Monitors a user-specified directory and automatically converts new images to WebP format.\n- **Retina Display Optimization**: Optimizes images for 16\" Retina displays, balancing image quality with file size.\n- **Aspect Ratio Preservation**: Maintains the original aspect ratio of images and does not stretch smaller images.\n- **Configurable**: Allows users to configure settings like the directory to watch, max dimensions, and image quality.\n\n## Requirements\n\n- Python 3\n- ImageMagick\n- Watchdog library\n\n## Installation\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/[your_username]/webp-image-converter.git\n   cd webp-image-converter\n   ```\n\n2. **Install the required packages:**\n   ```bash\n   pip install watchdog\n   ```\n\n3. **Ensure ImageMagick is installed:**\n   - ImageMagick can be installed via Homebrew:\n     ```bash\n     brew install imagemagick\n     ```\n\n## Configuration\n\nBefore running the application, configure the `directory_to_watch` in the script to the directory you want to monitor:\n\n```python\nif __name__ == '__main__':\n    directory_to_watch = \"/Users/[you decide this path]\"\n    w = Watcher(directory_to_watch)\n    w.run()\n```\n\nReplace `\"/Users/[you decide this path]\"` with the path to the directory you want to monitor.\n\n## Usage\n\nTo run the application, navigate to the application directory in your terminal and run:\n\n```bash\npython convert_to_webp.py\n```\n\nThe application will start monitoring the specified directory and automatically convert any new JPG, JPEG, or PNG files to WebP format.\n\n## Packaging as a macOS Application\n\nYou can package this script as a standalone macOS application using `py2app`. Refer to the `py2app` documentation for detailed instructions.\n\n## Contribution\n\nContributions are welcome! For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaltiola7%2Fwebpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaltiola7%2Fwebpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaltiola7%2Fwebpy/lists"}