You can add a white margin to your photo.
easy peasy.
insta-margin $ go get golang.org/x/image/draw
insta-margin $ go build insta.go
insta-margin $ ./insta landscape.jpg
Output file has random base62 suffix, don't worry about overwrite.
You can specify a white margin percentage by -p option.
Default value is defined as defaultMarginPercent, and it is 80.
Also, you can specify a directory with -d option.
All photos inside the specified directory will be converted.
insta-margin $ ./insta -d photos/
You can configure baseSize and defaultMarginPercent.
For now, as Instagram's maximum upload size is 1080 x 1080, the default baseSize value follows this limit.
Landscape ratio.
Portrait ratio.
Thanks, all sample photos are mine 😊
https://www.flickr.com/people/yukihira_fl/

