{"id":38663888,"url":"https://github.com/sean1832/pix","last_synced_at":"2026-01-17T09:44:11.380Z","repository":{"id":230425424,"uuid":"779338591","full_name":"sean1832/pix","owner":"sean1832","description":"a simple image manipulation cli for the terminal","archived":false,"fork":false,"pushed_at":"2024-06-25T06:38:59.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-11T14:57:35.341Z","etag":null,"topics":["cli","image-processing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sean1832.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-03-29T15:50:09.000Z","updated_at":"2024-06-25T06:39:02.000Z","dependencies_parsed_at":"2024-03-29T17:26:41.961Z","dependency_job_id":"e05a2e78-90ed-4c75-81e1-252c62c3c6e7","html_url":"https://github.com/sean1832/pix","commit_stats":null,"previous_names":["sean1832/pix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sean1832/pix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sean1832%2Fpix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sean1832%2Fpix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sean1832%2Fpix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sean1832%2Fpix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sean1832","download_url":"https://codeload.github.com/sean1832/pix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sean1832%2Fpix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"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":["cli","image-processing"],"created_at":"2026-01-17T09:44:11.210Z","updated_at":"2026-01-17T09:44:11.336Z","avatar_url":"https://github.com/sean1832.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PIX\n[![PyPI - Version](https://img.shields.io/pypi/v/zz-pix)](https://pypi.org/project/zz-pix)\n[![PyPI - License](https://img.shields.io/pypi/l/zz-pix)](LICENSE)\n[![Downloads](https://static.pepy.tech/badge/zz-pix)](https://pepy.tech/project/zz-pix)\n\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/zz-pix)\n\nA simple image manipulation tool for the terminal.\n\n\u003e ⭐️ Like this repo? please consider a star!\n\n\u003e 💡 This project is still earily in its development. Please report any bugs or issues you encounter.\n\n## 🌟 Features\n- [x] Resize\n- [x] Crop\n- [x] Convert\n- [x] Prune (remove low-quality images)\n- [x] Caption (add text \u0026 metadata to images)\n- [x] Transparency\n- [ ] Watermark\n- [ ] Grayscale\n\n## 💻 Installation\n\n### Using pip (Recommended)\n```sh\npip install zz-pix\n```\n\n### From Source\n```bash\ngit clone https://github.com/sean1832/pix.git\ncd pix\npip install .\n```\n\n## 🔨 Usage\n\n### Basic Usage\n\n```sh\npix [COMMAND] [OPTIONS]\n```\n\nReplace `[COMMAND]` with the desired operation and `[OPTIONS]` with the relevant options for your command.\n\n### Global Options\n\n- `-v`, `--version`: Display the version of the tool.\n- `-h`, `--help`: Display the help message.\n\n### Commands\n\n| Command             | Description                                      |\n| ------------------- | ------------------------------------------------ |\n| [convert](#convert) | Converts images to a different format            |\n| [resize](#resize)   | Resizes images                                   |\n| [crop](#crop)       | Crops images                                     |\n| [prune](#prune)     | Removes images smaller than specified resolution |\n\n### Command Options\n\n#### Convert\nConverts images to a different formats. Currently supports `JPEG`, `PNG`, `WEBP`, `TIFF`, `ICO`, `AVIF`, `HEIF`, `BMP`.\n\n```sh\npix convert input.jpg output.webp [OPTIONS]\n```\n\n| Option                | Input Type | Description                              | Default      |\n| --------------------- | ---------- | ---------------------------------------- | ------------ |\n| `input`               | String     | Input image or directory                 | N/A          |\n| `output`              | String     | Output image or directory                | Current dir. |\n| `-f`, `--format`      | String     | Output format (supported formats listed) | N/A          |\n| `-q`, `--quality`     | Integer    | Output quality (0-100)                   | 95           |\n| `--no-optimize`       | Flag       | Disable optimization                     | N/A          |\n| `-o`, `--overwrite`   | Flag       | Overwrite existing files                 | N/A          |\n| `-t`, `--transparent` | Flag       | Preserve transparency                    | N/A          |\n| `--prefix`            | String     | Prefix for the output file name          | \"\"           |\n| `--surfix`            | String     | Suffix for the output file name          | \"\"           |\n\n#### Resize\nResizes images to a specified size or scale.\n```sh\npix resize input.jpg output.jpg [OPTIONS]\n```\n\n| Option        | Input Type | Description               | Default      |\n| ------------- | ---------- | ------------------------- | ------------ |\n| `input`       | String     | Input image or directory  | N/A          |\n| `output`      | String     | Output image or directory | Current dir. |\n| `--overwrite` | Flag       | Overwrite existing files  | N/A          |\n| `--size`      | String     | Output size (WxH)         | N/A          |\n| `--scale`     | Float      | Output scale (0.0-1.0)    | N/A          |\n\n#### Crop\nCrops images to a specified size and position.\n```sh\npix crop input.jpg output.jpg [OPTIONS]\n```\n\n\n| Option        | Input Type | Description                                  | Default      |\n| ------------- | ---------- | -------------------------------------------- | ------------ |\n| `input`       | String     | Input image or directory                     | N/A          |\n| `output`      | String     | Output image or directory                    | Current dir. |\n| `--overwrite` | Flag       | Overwrite existing files                     | N/A          |\n| `--ratio`     | String     | Aspect ratio (W:H), combined with `--align`  | N/A          |\n| `--size`      | String     | Exact size and position as WxH+X+Y           | N/A          |\n| `--align`     | String     | Alignment (top, bottom, left, right, center) | N/A          |\n\n#### Prune\nRemoves images smaller than a specified resolution.\n```sh\npix prune ./images [OPTIONS]\n```\n\n\n| Option               | Input Type | Description                                    | Default |\n| -------------------- | ---------- | ---------------------------------------------- | ------- |\n| input                | String     | Input image or directory                       | N/A     |\n| `-r`, `--resolution` | String     | Minimum resolution (WxH)                       | N/A     |\n| `--dry-run`          | Flag       | List files to be removed without deleting them | N/A     |\n\n\n\n\n## License\n[Apache-2.0](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsean1832%2Fpix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsean1832%2Fpix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsean1832%2Fpix/lists"}