- Overlay random quotes on images.
- Customizable text styles.
- Add logos or trademarks to images.
- Automatically saves the generated posts to an
out/folder.
-
Clone the repository:
git clone https://github.com/found-sec/BulkPostGenerator.git cd BulkPostGenerator -
Install Dependencies
pip install -r requirements.txt
This Python script overlays quotes fetched from the API Ninjas API onto images. It provides customization options such as adding a logo, trademark text, and applying a color tint to the images.
- Fetch Quotes: Retrieves quotes from the API Ninjas API for a specified author.
- Image Handling: Resizes images and overlays quotes with text wrapping.
- Quote Overlay: Places the fetched quote at the center of the image.
- Customization: Option to add a logo and trademark text to the images.
- Batch Processing: Generate multiple image-quote combinations or use a random image for each quote.
- Image Tint: Apply a custom color tint to the images.
- Output: Saves processed images in the
outfolder.
-
Run the script:
python api_ninjas_specific.py
-
Follow the prompts:
- Enter the author's name.
- Specify how many quotes to fetch.
- Choose whether to generate all combinations or random selections.
This Python script overlays quotes fetched from the Forismatic API onto images. It provides customization options such as adding a logo, trademark text, and applying a color tint to the images.
- Fetch Quotes: Retrieves random quotes from the Forismatic API.
- Image Handling: Resizes images and overlays quotes with text wrapping.
- Quote Overlay: Places the fetched quote at the center of the image.
- Customization: Option to add a logo and trademark text to the images.
- Batch Processing: Generate multiple image-quote combinations or use a random image for each quote.
- Image Tint: Apply a custom color tint to the images.
- Output: Saves processed images in the
outfolder.
-
Run the script:
python forismatic_random.py
-
Follow the prompts:
- Specify the number of quotes to generate.
- Choose whether to generate all combinations or random selections of quotes.
- Decide whether to include a trademark/logo on the images.
This Python script overlays quotes from a file onto images. It provides options for customizing the images with logos, trademark text, and color tint effects.
- Load Quotes: Reads quotes from a text file (
quotes.txt). - Image Handling: Resizes images and overlays quotes with text wrapping.
- Quote Overlay: Places the quote at the center of the image.
- Customization: Option to add a logo and trademark text to the images.
- Batch Processing: Generate combinations of images and quotes or randomly select one quote for each image.
- Image Tint: Apply a custom color tint to the images.
- Output: Saves processed images in the
outfolder.
-
Run the script:
python post_generator.py
-
Follow the prompts:
- Specify whether to generate all combinations of images and quotes or select one quote per image.
- Decide whether to include a trademark/logo on the images.
-
Ensure your quotes are saved in the
quotes.txtfile in theinfolder and images are located in thein/rawfolder. -
Processed images will be saved in the
outfolder.
- You can modify the script to change the tint color applied to images by editing the
apply_tint()function.
- Ensure that the
in/rawdirectory contains the image files you want to use. - Processed images will be saved in the
outdirectory. - utils/BebasNeue.otf is the font being used in the posts, it can be changed with any font file.
- -YOUR_TRADEMARK can be replaced with eg your social handles.
- shelby.png can be replaced with your desired logo.
This project uses the MIT license.
Any contributions will be appreciated, please fork this repo and create a pull request if you would like to contribute.
