Skip to content

Instantly share code, notes, and snippets.

@deomorxsy
Created May 28, 2019 21:31
Show Gist options
  • Save deomorxsy/1372436198d9b7b6c09340edf9ce7058 to your computer and use it in GitHub Desktop.
Save deomorxsy/1372436198d9b7b6c09340edf9ce7058 to your computer and use it in GitHub Desktop.
Shell Script with magik's convert comand
#!/bin/bash
cd directory/
l1=(*.jpg)
for l1 in *.jpg; do convert $l1 -resize 1080x1920! ../final/$l1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment