# image_pyconverter_cli
---------------------------------------
[![PyPI version](https://badge.fury.io/py/image_pyconverter_cli.svg)](https://badge.fury.io/py/image_pyconverter_cli)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/image_pyconverter_cli)
![Github CI](https://github.com/shuntaH/image_pyconverter_cli/actions/workflows/test-ci.yml/badge.svg)
CLI providing simple image conversion functionality in python.
New features will be added as needed.
## Install
```bash
$ pip install image_pyconverter_cli
```
## Uninstall
```bash
$ pip uninstall image_pyconverter_cli
```
## Rename
A text file of the record before and after the conversion of the image is automatically created.
### 1
```bash
$ ic_rename directory-containing-images --is_all_replaced_with_new_name --new_name new-name
```
```bash
directry-containing-images
├── dir1
│ ├── dir1-image.png
│ └── dir2
│ └── dir2-image.png
└── image.png
directry-containing-imagesg-images
├── dir1
│ ├── new-name002.png
│ └── dir2
│ └── new-name003.png
└── new-name001.png
```
### 2
```bash
$ ic_rename directory-containing-images --chars_before_replacement dir1 dir2 --chars_after_replacement newdir1 newdir2
```
```bash
directry-containing-images
├── dir1
│ ├── dir1-image.png
│ └── dir2
│ └── dir2-image.png
└── image.png
directry-containing-images
├── dir1
│ ├── newdir1-image.png
│ └── dir2
│ └── newdir2-image.png
└── image.png
```
### 3
```bash
$ ic_rename directory-containing-images
```
```bash
directry-containing-images
├── dir1
│ └── ABC.png
└── image001.png
directry-containing-images
├── dir1
│ └── abc.png
└── image001.png
```
### 4
```bash
$ ic_rename directory-containing-images --is_separator_and_delimiter_replaced --separator _
```
```bash
directry-containing-images
├── dir1
│ ├── dir1-image.png
│ └── dir2
│ └── dir2-image.png
└── image image.png
directry-containing-images
├── dir1
│ ├── dir1_image.png
│ └── dir2
│ └── dir2_image.png
└── image_image.png
```
### 5
```bash
$ ic_rename directory-containing-images --alternative_unavailable_char_in_windows -
```
```bash
directry-containing-images
└── -_,!(:*?<>|¥)あabc.png
directry-containing-images
└── -_,!(--------)あabc.png
```
### 6
```bash
$ ic_rename directory-containing-images --alternative_url_encoded_char X
```
```bash
directry-containing-images
└── -_,!()abcあ* &^%.png
directry-containing-images
└── -_XXXXabcXXXXXX.png
```
### 7
```bash
$ ic_rename directory-containing-images --prefix prefix --suffix suffix --separator -
```
```bash
directry-containing-images
└── image.png
directry-containing-images
└── prefix-image-suffix.png
```
### 8
```bash
$ ic_rename directory-containing-images --prefix prefix --suffix suffix --separator -
```
```bash
directry-containing-images
└── image.png
directry-containing-images
└── prefix-image-suffix.png
```
### 9
```bash
$ ic_rename directory-containing-images --is_serial_number_added
```
```bash
directry-containing-images
├── dir1
│ ├── dir1-image.png
│ └── dir2
│ └── dir2-image.png
└── image.png
directry-containing-images
├── dir1
│ ├── dir1-image002.png
│ └── dir2
│ └── dir2-image003.png
└── image001.png
```
### 10
```bash
$ ic_rename directory-containing-images --is_output_to_same_dir --separator -
```
```bash
directry-containing-images
├── dir1
│ ├── image.png
│ └── dir2
│ └── image.png
└── image.png
directry-containing-images
├── dir1-image.png
├── dir2-image.png
└── image.png
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ShuntaH/image_pyconverter_cli",
"name": "image-pyconverter-cli",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Image converter,Rename,Python,CLI",
"author": "ShuntaH",
"author_email": "hskpg.contact@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ef/9d/5f4030d5022e7bb6cd551e71d9dc0a3a97ed9f9852e8e8cb38454bff1531/image_pyconverter_cli-1.1.0.tar.gz",
"platform": "POSIX",
"description": "# image_pyconverter_cli\n\n---------------------------------------\n\n[![PyPI version](https://badge.fury.io/py/image_pyconverter_cli.svg)](https://badge.fury.io/py/image_pyconverter_cli)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/image_pyconverter_cli)\n![Github CI](https://github.com/shuntaH/image_pyconverter_cli/actions/workflows/test-ci.yml/badge.svg)\n\nCLI providing simple image conversion functionality in python.\n\nNew features will be added as needed.\n\n\n## Install\n```bash\n$ pip install image_pyconverter_cli\n```\n\n## Uninstall\n```bash\n$ pip uninstall image_pyconverter_cli\n```\n\n\n\n## Rename\nA text file of the record before and after the conversion of the image is automatically created.\n\n### 1\n```bash\n$ ic_rename directory-containing-images --is_all_replaced_with_new_name --new_name new-name\n```\n```bash\ndirectry-containing-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 dir1-image.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2-image.png\n\u2514\u2500\u2500 image.png\n\n\ndirectry-containing-imagesg-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 new-name002.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 new-name003.png\n\u2514\u2500\u2500 new-name001.png\n```\n\n### 2\n```bash\n$ ic_rename directory-containing-images --chars_before_replacement dir1 dir2 --chars_after_replacement newdir1 newdir2\n```\n```bash\ndirectry-containing-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 dir1-image.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2-image.png\n\u2514\u2500\u2500 image.png\n\n\ndirectry-containing-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 newdir1-image.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 newdir2-image.png\n\u2514\u2500\u2500 image.png\n```\n\n### 3\n```bash\n$ ic_rename directory-containing-images\n```\n```bash\ndirectry-containing-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 \uff21\uff22\uff23.png\n\u2514\u2500\u2500 image\uff10\uff10\uff11.png\n\n\ndirectry-containing-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 abc.png\n\u2514\u2500\u2500 image001.png\n```\n\n\n### 4\n```bash\n$ ic_rename directory-containing-images --is_separator_and_delimiter_replaced --separator _\n```\n```bash\ndirectry-containing-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 dir1-image.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2-image.png\n\u2514\u2500\u2500 image image.png\n\n\ndirectry-containing-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 dir1_image.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2_image.png\n\u2514\u2500\u2500 image_image.png\n```\n\n### 5\n```bash\n$ ic_rename directory-containing-images --alternative_unavailable_char_in_windows -\n```\n```bash\ndirectry-containing-images\n\u2514\u2500\u2500 -_,!(:*?<>|\u00a5)\u3042abc.png\n\n\ndirectry-containing-images\n\u2514\u2500\u2500 -_,!(--------)\u3042abc.png\n```\n\n### 6\n```bash\n$ ic_rename directory-containing-images --alternative_url_encoded_char X\n```\n```bash\ndirectry-containing-images\n\u2514\u2500\u2500 -_,!()abc\u3042* &^%.png\n\n\ndirectry-containing-images\n\u2514\u2500\u2500 -_XXXXabcXXXXXX.png\n```\n\n### 7\n```bash\n$ ic_rename directory-containing-images --prefix prefix --suffix suffix --separator -\n```\n```bash\ndirectry-containing-images\n\u2514\u2500\u2500 image.png\n\n\ndirectry-containing-images\n\u2514\u2500\u2500 prefix-image-suffix.png\n```\n\n### 8\n```bash\n$ ic_rename directory-containing-images --prefix prefix --suffix suffix --separator -\n```\n```bash\ndirectry-containing-images\n\u2514\u2500\u2500 image.png\n\n\ndirectry-containing-images\n\u2514\u2500\u2500 prefix-image-suffix.png\n```\n\n### 9\n```bash\n$ ic_rename directory-containing-images --is_serial_number_added\n```\n```bash\ndirectry-containing-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 dir1-image.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2-image.png\n\u2514\u2500\u2500 image.png\n\n\ndirectry-containing-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 dir1-image002.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2-image003.png\n\u2514\u2500\u2500 image001.png\n```\n\n\n### 10\n```bash\n$ ic_rename directory-containing-images --is_output_to_same_dir --separator -\n```\n```bash\ndirectry-containing-images\n\u251c\u2500\u2500 dir1\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 image.png\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 dir2\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 image.png\n\u2514\u2500\u2500 image.png\n\n\ndirectry-containing-images\n\u251c\u2500\u2500 dir1-image.png\n\u251c\u2500\u2500 dir2-image.png\n\u2514\u2500\u2500 image.png\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Image Conversion Tools.",
"version": "1.1.0",
"split_keywords": [
"image converter",
"rename",
"python",
"cli"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "18021a0693e21de54114f6954458bc21ff7c465bf38b886a62b01c681cce1caa",
"md5": "3fc4d746b1ff7a7afd790f85b55d6d9c",
"sha256": "d6d736a01a4031749393db22f388d205bcf25e6be64625aca99417a65bc40690"
},
"downloads": -1,
"filename": "image_pyconverter_cli-1.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "3fc4d746b1ff7a7afd790f85b55d6d9c",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 22122,
"upload_time": "2023-01-05T15:29:20",
"upload_time_iso_8601": "2023-01-05T15:29:20.806616Z",
"url": "https://files.pythonhosted.org/packages/18/02/1a0693e21de54114f6954458bc21ff7c465bf38b886a62b01c681cce1caa/image_pyconverter_cli-1.1.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ef9d5f4030d5022e7bb6cd551e71d9dc0a3a97ed9f9852e8e8cb38454bff1531",
"md5": "8a71350efa1b64e9be09fde68722147e",
"sha256": "cc6da04c5c9b95b65875db64face03c6004afd93fe2f16e7aaa4805486395f23"
},
"downloads": -1,
"filename": "image_pyconverter_cli-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "8a71350efa1b64e9be09fde68722147e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18338,
"upload_time": "2023-01-05T15:29:22",
"upload_time_iso_8601": "2023-01-05T15:29:22.669454Z",
"url": "https://files.pythonhosted.org/packages/ef/9d/5f4030d5022e7bb6cd551e71d9dc0a3a97ed9f9852e8e8cb38454bff1531/image_pyconverter_cli-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-05 15:29:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "ShuntaH",
"github_project": "image_pyconverter_cli",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "image-pyconverter-cli"
}