{"id":19508222,"url":"https://github.com/yaph/wim","last_synced_at":"2026-02-05T23:02:36.767Z","repository":{"id":25637923,"uuid":"29073269","full_name":"yaph/wim","owner":"yaph","description":"A command-line tool for creating and optimizing images for the web with text overlays, watermarks, and more.","archived":false,"fork":false,"pushed_at":"2026-02-02T21:23:07.000Z","size":86,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-03T10:32:39.526Z","etag":null,"topics":["cli","command-line-tools","image","image-manipulation","image-optimization","image-processing","image-processing-python","image-resize","image-watermark","pillow","python-package","text-overlay","watermark","web-images"],"latest_commit_sha":null,"homepage":"","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/yaph.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":"https://www.paypal.me/rgmz","github":"yaph"}},"created_at":"2015-01-10T22:26:19.000Z","updated_at":"2026-02-02T21:23:10.000Z","dependencies_parsed_at":"2024-01-17T01:35:54.004Z","dependency_job_id":"97a4b443-1753-4f8f-bb02-115ea20e9cdc","html_url":"https://github.com/yaph/wim","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.04166666666666663,"last_synced_commit":"8acbbfb9fe93ac16b084ae9e873ec42e763d9337"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/yaph/wim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaph%2Fwim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaph%2Fwim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaph%2Fwim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaph%2Fwim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaph","download_url":"https://codeload.github.com/yaph/wim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaph%2Fwim/sbom","scorecard":{"id":1241904,"data":{"date":"2026-01-12","repo":{"name":"github.com/yaph/wim","commit":"d46005a991d68d1fba3bcdb21eb105fd4abf4553"},"scorecard":{"version":"v5.4.1-0.20260109214540-85483c21ffbb","commit":"85483c21ffbb0f125cf1d16aa53f283d574f4ca5"},"score":4.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"17 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/yaph/wim/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/yaph/wim/test.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:37","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/85483c21ffbb0f125cf1d16aa53f283d574f4ca5/docs/checks.md#sast"}}]},"last_synced_at":"2026-01-18T12:25:14.627Z","repository_id":25637923,"created_at":"2026-01-18T12:25:14.627Z","updated_at":"2026-01-18T12:25:14.627Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29137753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T22:49:08.052Z","status":"ssl_error","status_checked_at":"2026-02-05T22:45:32.059Z","response_time":65,"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":["cli","command-line-tools","image","image-manipulation","image-optimization","image-processing","image-processing-python","image-resize","image-watermark","pillow","python-package","text-overlay","watermark","web-images"],"created_at":"2024-11-10T23:04:20.751Z","updated_at":"2026-02-05T23:02:36.760Z","avatar_url":"https://github.com/yaph.png","language":"Python","readme":"# WIM - Web Image Maker\n\nA command-line tool for creating and optimizing images for the web with text overlays, watermarks, and more.\n\n## Installation\n\n```bash\npipx install wim\n```\n\nOr install from source:\n\n```bash\ngit clone https://github.com/yaph/wim.git\ncd wim\npip install -e .\n```\n\n## Quick Start\n\n```bash\n# Add text overlay\nwim input.jpg -t \"Hello World\"\n\n# Add watermark\nwim input.jpg -w logo.png\n\n# Scale and add text\nwim input.jpg -s 800 -t \"Resized Image\"\n\n# Add semi-transparent watermark in top-right corner\nwim photo.jpg -w logo.png --watermark-position top-right --watermark-opacity 128\n```\n\n## Features\n\n### Text Overlays\n\n- Add text with semi-transparent backgrounds\n- Customize font, size, and position\n- Automatic text centering and padding\n\n### Watermarks \u0026 Overlays\n\n- Blend images over your photos\n- Adjust opacity for subtle watermarks\n- Scale overlays to any size\n- Position overlays anywhere (corners, center)\n\n### Image Optimization\n\n- Scale images to maximum dimensions\n- Quantize to reduce file size\n- Convert between formats (PNG, JPEG)\n- Automatic RGBA to RGB conversion for JPEG\n\n### Smart Defaults\n\n- Non-destructive by default (adds `-wim` to file name stems)\n- RGBA support with proper alpha blending\n- High-quality image resampling\n\n## Usage Examples\n\n```bash\n# Add text with custom font and size\nwim input.jpg -t \"Caption\" --font times.ttf --font-size 24\n\n# Add watermark with 50% opacity in bottom-right\nwim photo.jpg -w logo.png --watermark-opacity 128\n\n# Scale watermark to specific size\nwim photo.jpg -w logo.png --watermark-scale 150 150\n\n# Multiple operations at once\nwim input.jpg -s 1200 -t \"Summer 2024\" -w logo.png --watermark-position top-right\n\n# Edit image in place\nwim input.jpg -i -t \"Updated\"\n\n# Reduce file size with quantization\nwim input.png -q\n```\n\n## Command Line Options\n\n```bash\nwim --help\n```\n\n\u003c!-- START: DO NOT EDIT --\u003e\n```text\nusage: wim [-h] [-i | -o OUTDIR] [--strip] [--trim] [--version] [--format {ico,jpg,png,webp,jpeg,bmp,gif}]\n                             [--output-label OUTPUT_LABEL] [--quality QUALITY] [--quantize QUANTIZE] [-s WIDTH HEIGHT]\n                             [--font FONT] [--font-size FONT_SIZE] [-t TEXT] [-w WATERMARK]\n                             [--watermark-opacity WATERMARK_OPACITY] [--watermark-scale WIDTH HEIGHT]\n                             [--watermark-position {top-left,top-right,bottom-left,bottom-right,center}]\n                             filename [filename ...]\n\nEdit, optimize, and watermark images from the command line.\n\npositional arguments:\n  filename              Input image filename. Use wildcard to process multiple files.\n\noptions:\n  -h, --help            show this help message and exit\n  -i, --inplace         Edit the image in place (overwrites original).\n  -o OUTDIR, --outdir OUTDIR\n                        Output directory for processed images.\n  --strip               Strip image of all metadata.\n  --trim                Trim uniform-color borders from image edges.\n  --version             show program's version number and exit\n  --format {ico,jpg,png,webp,jpeg,bmp,gif}\n                        Set the output format. If not set, original format is used.\n  --output-label OUTPUT_LABEL\n                        Label to append to the output file name. Ignored if --inplace is used.\n  --quality QUALITY     Output quality 1-100 (lower = smaller file). Works with JPEG and WebP.\n  --quantize QUANTIZE   Quantize the image with the desired number of colors, \u003c= 256.\n  -s WIDTH HEIGHT, --scale WIDTH HEIGHT\n                        Set the maximum width and height as integer values.\n  --font FONT           Font name (e.g., DejaVuSans, Arial) or path to TrueType font file (.ttf), requires font size setting.\n                        Falls back to system default if not specified or found.\n  --font-size FONT_SIZE\n                        Set the font size, requires font setting.\n  -t TEXT, --text TEXT  Set the text to add to the image.\n  -w WATERMARK, --watermark WATERMARK\n                        Path to watermark/overlay image to add to the image.\n  --watermark-opacity WATERMARK_OPACITY\n                        Opacity of watermark 0-255 (default: 255).\n  --watermark-scale WIDTH HEIGHT\n                        Scale watermark to WIDTH HEIGHT in pixels.\n  --watermark-position {top-left,top-right,bottom-left,bottom-right,center}\n                        Position of watermark (default: bottom-right).\n\n```\n\u003c!-- END: DO NOT EDIT --\u003e\n\n## Requirements\n\n- Python ≥ 3.10\n- Pillow\n\n## Development\n\n```bash\n# Clone repository\ngit clone https://github.com/yaph/wim.git\ncd wim\n\n# Run in development mode\nhatch shell wim-dev\n\n# Run tests\nhatch run qa\n\n# Clean build artifacts\nhatch run clean\n```\n\n## License\n\nMIT License - see LICENSE file for details\n\n## Author\n\nRamiro Gómez ([@yaph](https://github.com/yaph))\n\n## Links\n\n- **Documentation**: https://github.com/yaph/wim#readme\n- **Issues**: https://github.com/yaph/wim/issues\n- **Source Code**: https://github.com/yaph/wim","funding_links":["https://www.paypal.me/rgmz","https://github.com/sponsors/yaph"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaph%2Fwim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaph%2Fwim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaph%2Fwim/lists"}