Last active
March 17, 2018 10:41
-
-
Save tomoyanonymous/0f786af51f9f25882db200b460ccc174 to your computer and use it in GitHub Desktop.
画像をOGP用(1200*630)に変換するやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ファイル名、backgroundとかは適当に設定してくれ | |
echo "test.jpeg" | xargs -I{} bash -c 'convert -resize 1200x630 {} ogp_{} && convert -background white -gravity center -extent 1200x630 ogp_{} ogp_{}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment