#!/bin/bash # uses imagemagick to resize image to canvas size if bigger # usage ./imagefit.sh input.png output.png convert -resize ">500x500" $@