Skip to content

Instantly share code, notes, and snippets.

@seaque
Last active March 3, 2023 07:55
Show Gist options
  • Save seaque/a38878cf0978b69af365e9c3e91d39c3 to your computer and use it in GitHub Desktop.
Save seaque/a38878cf0978b69af365e9c3e91d39c3 to your computer and use it in GitHub Desktop.
imagemagick commands.

16:9 to 2:1 (1920x1080 -> 1920x960)

magick convert in.jpeg -crop x960+0+60 out.jpeg

Convert all PNG to JPG

for %i in (*.png) do magick convert "%i" "%i.jpg"

Crop all jpg images specified resolution with folder named outputs in the same directory

magick mogrify -path outputs -gravity center -crop WidthxHeight+0+0 *.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment