Metadata-Version: 2.1
Name: shiertier_image
Version: 0.1.0
Summary: A simple image processing library for Python.
Author-email: shiertier <junjie.text@gmail.com>
License: MIT License
        
        Copyright (c) 2024 shiertier
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE. 
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Pillow
Requires-Dist: shiertier_logger

# shiertier_image

中文 | [English](https://github.com/shiertier-utils/shiertier_image/blob/main/README_en.md)

## 1. 简介

`shiertier_image` 是一个用于图像处理的 Python 工具库。它提供了查找目录中的图像、加载和处理图像、调整图像大小等功能。

## 2. 安装

### 通过 pip 安装

```bash
pip install shiertier_image
```

### 通过 git 安装（开发版）

```bash
pip install git+https://github.com/shiertier-utils/shiertier_image.git
```

## 3. 使用示例

```python
from shiertier_image import ez_imgutils

# 查找目录中的图像
images = ez_imgutils.find_images_in_directory('path/to/directory')

# 加载图像
image = ez_imgutils.load_image('path/to/image.jpg')

# 调整图像大小
resized_image = ez_imgutils.resize_image(image, max_size=1024)

# 保存调整大小后的图像
ez_imgutils.resize_and_save_image('path/to/image.jpg', 'path/to/save_dir')
```

## 4. 许可证

本项目采用 [MIT 许可证](LICENSE)。 
