This Python script generates Pinterest-style post images by overlaying text on background images. It utilizes threading for concurrent image generation and supports customization of text styling.
- Python 3.x
- PIL (Python Imaging Library)
impact.ttf
font file (or specify your own font)- Background images in the
background_images
folder - Input text lines in a CSV file (
pin_text.csv
)
-
Clone the repository:
git clone https://github.com/Nafi7393/PINTEREST-POST-MAKER.git cd PINTEREST-POST-MAKER
-
Install dependencies:
pip install pillow
-
Place your background images in the
background_images
folder.
Modify pin_text.csv
with your desired text lines. Then run the script to generate Pinterest-style images:
python main.py
Adjust parameters in main.py
such as max_limit
in fire_pins
function for batch image generation.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
- Text Styling: Modify
text_color
,font_path
,base_font_size
, andfont_increase_size
inPinMaker
class for different text effects. - Backgrounds: Add or change background images in
background_images
folder to create diverse post styles.
- Ensure the CSV file (
pin_text.csv
) is correctly formatted with each line of text in the first column. - The script uses threading for concurrent image processing, ensuring efficient batch image creation.
This project is licensed under the MIT License - see the LICENSE file for details.