Created
June 23, 2016 01:51
-
-
Save djoo/228224e081d165904acf1cc084bc5b97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
find -E '/Users/Johann/Desktop/ResizeBlog2' -type f -iregex '.*\.(JPG|JPEG|PNG|TIF|TIFF)$' |\ | |
while read FULL_IMAGE_PATH | |
do | |
convert -density 72 -units PixelsPerInch -resize "1200x1200>" -quality 90 "${FULL_IMAGE_PATH}" "${FULL_IMAGE_PATH}" | |
composite -compose atop -geometry +15 -gravity southwest ./watermark-photos.png "${FULL_IMAGE_PATH}" "${FULL_IMAGE_PATH}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment