image_pyconverter_cli
CLI providing simple image conversion functionality in python.
New features will be added as needed.
Install
$ pip install image_pyconverter_cli
Uninstall
$ pip uninstall image_pyconverter_cli
Rename
A text file of the record before and after the conversion of the image is automatically created.
1
$ ic_rename directory-containing-images --is_all_replaced_with_new_name --new_name new-name
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
$ ic_rename directory-containing-images --chars_before_replacement dir1 dir2 --chars_after_replacement newdir1 newdir2
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
$ ic_rename directory-containing-images
directry-containing-images
├── dir1
│ └── ABC.png
└── image001.png
directry-containing-images
├── dir1
│ └── abc.png
└── image001.png
4
$ ic_rename directory-containing-images --is_separator_and_delimiter_replaced --separator _
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
$ ic_rename directory-containing-images --alternative_unavailable_char_in_windows -
directry-containing-images
└── -_,!(:*?<>|¥)あabc.png
directry-containing-images
└── -_,!(--------)あabc.png
6
$ ic_rename directory-containing-images --alternative_url_encoded_char X
directry-containing-images
└── -_,!()abcあ* &^%.png
directry-containing-images
└── -_XXXXabcXXXXXX.png
7
$ ic_rename directory-containing-images --prefix prefix --suffix suffix --separator -
directry-containing-images
└── image.png
directry-containing-images
└── prefix-image-suffix.png
8
$ ic_rename directory-containing-images --prefix prefix --suffix suffix --separator -
directry-containing-images
└── image.png
directry-containing-images
└── prefix-image-suffix.png
9
$ ic_rename directory-containing-images --is_serial_number_added
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
$ ic_rename directory-containing-images --is_output_to_same_dir --separator -
directry-containing-images
├── dir1
│ ├── image.png
│ └── dir2
│ └── image.png
└── image.png
directry-containing-images
├── dir1-image.png
├── dir2-image.png
└── image.png