Skip to content

Instantly share code, notes, and snippets.

@tomoyanonymous
Last active March 17, 2018 10:41
Show Gist options
  • Save tomoyanonymous/0f786af51f9f25882db200b460ccc174 to your computer and use it in GitHub Desktop.
Save tomoyanonymous/0f786af51f9f25882db200b460ccc174 to your computer and use it in GitHub Desktop.
画像をOGP用(1200*630)に変換するやつ
#ファイル名、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