Skip to content

Instantly share code, notes, and snippets.

@pwelagedara
Created June 3, 2019 19:25
Show Gist options
  • Save pwelagedara/43704965dd2a25aae81be717065ca4f9 to your computer and use it in GitHub Desktop.
Save pwelagedara/43704965dd2a25aae81be717065ca4f9 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Prerequisite
# 1. ImageMagick
# Pass image name as a param
IMAGE=$1
convert ./artifacts/$IMAGE -resize 600 ./artifacts/600/$IMAGE
convert ./artifacts/$IMAGE -resize 850 ./artifacts/850/$IMAGE
convert ./artifacts/$IMAGE -resize 1200 ./artifacts/1200/$IMAGE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment