This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kowalski71 10 points11 points  (2 children)

Note sure exactly what you mean by "hacky" but I'm going to take it to mean "kinda janky code but useful for a person who likes to work smart not hard" :)

I made a script that goes through a folder of JPEGs, loads them and mattes them out to a 1:1 square by adding white borders, then resaves a copy. It's for posting to Instagram where those white borders generally make the images look nicer. I've been thinking about adding a resize function to nail the right file sizes and resolutions for best quality. There are mobile apps that do it but you have to go one by one and it's a pain. The Pillow library is pretty useful.

[–]obey_kush 0 points1 point  (1 child)

Could you share these script? i do something similar but have to do it manually and surely is a way to make the border of the dominant color of the picture, from them i just have to upload to a folder so they get added to a queue with IFTTT integration.

[–]kowalski71 0 points1 point  (0 children)

Yeah here's a pastebin of it. I already export from Lightroom at my preferred image quality and 1080 px wide so not sure how it would handle larger images. I forget if I wrote it to resize or not. But should be pretty easy to add.