checkcorruptedimages-0.2
توضیحات
Python3 module to check for corrupted images using "identify" from ImageMagick as underlying mechanism.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | checkcorruptedimages-0.2 |
| نام | checkcorruptedimages |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Carlos A. Planchón |
| ایمیل نویسنده | bubbledoloresuruguay2@gmail.com |
| آدرس صفحه اصلی | https://github.com/carlosplanchon/checkcorruptedimages |
| آدرس اینترنتی | https://pypi.org/project/checkcorruptedimages/ |
| مجوز | GPL3 |
# checkcorruptedimages
*Python3 module to check for corrupted images using "identify" from ImageMagick as underlying mechanism.*
## Installation
### Install with pip
```
pip3 install -U checkcorruptedimages
```
## Usage
```
In [1]: import checkcorruptedimages
In [2]: from pathlib import Path
In [3]: m = checkcorruptedimages.CheckCorruptedImages()
In [4]: m.verbose = True
In [5]: m.get_corrupted_images(
folder_to_check=Path("/home/user/Pictures"),
file_extensions_list=["jpg"]
)
Path: /home/user/Pictures/notcorruptedimage.jpg, corrupted: False
Path: /home/user/Pictures/corruptedimage.jpg, corrupted: True
Out[5]: [PosixPath('/home/user/Pictures/corruptedimage.jpg'),
PosixPath('/home/user/Pictures/corruptedimage2.jpg'
]
```
نحوه نصب
نصب پکیج whl checkcorruptedimages-0.2:
pip install checkcorruptedimages-0.2.whl
نصب پکیج tar.gz checkcorruptedimages-0.2:
pip install checkcorruptedimages-0.2.tar.gz