All the scripts written for image manuplation, such as blur, resize, or image resolution manager.
These scripts were written to learn how Pillow works, but if you feel you can use it for your personal use, you are very much welcome.
I recently started a new hobby of taking photos of the Moon, late in the night. For editing purpose it is suggested that we use RAW format to edit images.
I prefer to keep my RAW files in a different directory. Simply.
This script's main purpose is to move RAW files ending with format .NEF
to a new subfolder called RAW
. This is suppose to save time when there are 100s of images in question.
- Change the BASE_DIR if you wish.
- Inside the BASE_DIR make a folder
new_images
and paste all the new images from DSLR - Run the Script
- Enter the folder name you created:
new_images
- ???
- Profit
This script will move all files from desktop and put them in a file called _ARCHIVE
The files are sorted according to the format, and are placed in a folder named after the date of archiving.
- Change the desktop location in the code
- Run the script
- ???
- Profit
Desktop
├── _ARCHIVES
│ ├── _AUDIOS ['.mp3',]
│ │ ├── _DATE_MONTH_YEAR
│ │ │ ├── Your audio file 1
│ │ │ ├── Your audio file 2
│ │ │ └── Your audio file nth
│ ├── _DOCUMENTS ['.pdf','.txt',]
│ │ ├── _DATE_MONTH_YEAR
│ │ │ ├── Your document file 1
│ │ │ ├── Your document file 2
│ │ │ └── Your document file nth
│ ├── _IMAGES ['.png','.jpg','.jpeg',]
│ │ ├── _DATE_MONTH_YEAR
│ │ │ ├── Your image file 1
│ │ │ ├── Your image file 2
│ │ │ └── Your image file nth
│ ├── _VIDEOS [".mp4", '.avi', '.mkv',]
│ │ ├── _DATE_MONTH_YEAR
│ │ │ ├── Your video file 1
│ │ │ ├── Your video file 2
│ │ │ └── Your video file nth
- Install dependencies,
pip install pillow
- Change the desktop location in the code
- Place all the images you need to blur, in a folder called
blur_this
, this folder should be in your desktop - Run the script
- ???
- Profit
- Install dependencies,
pip install pillow
- Change the desktop location in the code
- Add the sizes you require in the code list
sizes
- Add the extensions of images, if not included in
IMAGE_EXTENSIONS
- Place all the images you need to resize in your desktop
- Run the script
- ???
- Profit
Pillow
pip install pillow
This script is not working, If you can solve it, it would be of great help.
Doesn't give feedback if no images are found in background