Did your squared, bordered feed on Instagram get destroyed by the new Instagram-imposed aspect ratio? Here is a simple Python script to add borders and resize images for Instagram; it's square-friendly too in case Instagram changes their mind.
- Adds a fixed border to input images.
- Adjusts the aspect ratio by embedding the bordered image in a square canvas.
- Resizes the image to a 1080px width.
- Saves the processed images in a designated output folder.
- Python 3.x
- Pillow (install with
pip install Pillow)
- Place your images in the
Inputfolder. - Run the script:
python ig-border-gen.py
- Processed images are saved in the
Donefolder.
cbrf2002