https://github.com/mr-addict/image-shrink
Image Shrink Python Script
https://github.com/mr-addict/image-shrink
Last synced: 10 months ago
JSON representation
Image Shrink Python Script
- Host: GitHub
- URL: https://github.com/mr-addict/image-shrink
- Owner: MR-Addict
- Created: 2022-09-05T16:31:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-05T16:34:20.000Z (over 3 years ago)
- Last Synced: 2025-03-01T23:29:17.390Z (about 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image Shrink Python Script
## 1. Preview
Features:
- Resize all images in specific folder
- Custom image maximum width and maximum size
Attention
- Do not put upper case image type in `img_types` variable, such as `.PNG`, `.JPG`
- After execute code, all your images will be `replaced` with resized images
## 2. How to use
Clone this repository and change `main.py` user variable.
```python
max_width = 1000 # Image max width
max_size = 500 # Image max
src_path = './' # Image source folder you put
img_types = '.jpg', '.png', 'jpeg' # Image types you got
```
There no requirement packages you need to install if you're using python 3.8+
After that execute python code
```bash
python main.py
```
Happy coding!