Add noise grain to images.
Limitations: The images should not be bigger than the filter.
Output example with opacity at 170
Install miniconda, then run:
conda env create -f environment.yaml
Install Python 3.8.5 and run:
pip install -r requirements.txt
- Place the images in the
in
folder - Use either of the run methods and check the
out
folder afterwards:
- Execute the script
run.ps1
- Activate the environment if using conda:
conda activate perfectgrain
- Execute the script:
python ./add_filter.py in out 'filters/Ilford HP5.jpg' 170
Change the python command to use different folders, filters or opacities.
python add_filter.py in out filter opacity
- in: input folder path
- out: output folder path
- filter: filter image path
- opacity: int between 0 and 255, where 0 is transparent
Film grain by filmcomposite.