This repository showcases my workflow to automate the preparation of media files for my Quran shorts on https://www.youtube.com/@islamic-vibes-33/shorts
Before we run main.py
, we need to have the images locally on our machine for the script to run correctly.
- Open https://everyayah.com/data/quranpngs/, download the
000_images.zip
file and extract the data - Open
main.py
, navigate toinvert_image
function and set the correct path to the extracted folder
- Open
prepare_surah_calligraphy.py
and adjust the output directory where the images will be saved
Pexels is a platform that contains free high quality images and videos shared by creators.
- Create an account on https://www.pexels.com/join-consumer/
- Request an API key from https://www.pexels.com/api/new/ and use it in your code
- Make sure to set the download directory to your desired location
Read Pexels' API documentaion if needed.
Once the above steps were completed, you are set to save time by automatically generating media files for Quran videos. Don't forget to edit all the paths in the file.