Last active
October 2, 2016 05:30
-
-
Save djoo/4bc401bae27b4b67dd77f253d8276a6f 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/ResizeGoogle' -type f -iregex '.*\.(JPG|JPEG|PNG|TIF|TIFF)$' |\ | |
while read FULL_IMAGE_PATH | |
do | |
convert -density 72 -units PixelsPerInch -resize "2000x2000>" -quality 90 "${FULL_IMAGE_PATH}" "${FULL_IMAGE_PATH}" | |
done | |
####### WINDOWS ####### | |
@ECHO OFF | |
FOR /R C:\Users\Marilyne\Desktop\T-Google %%G IN (*.PNG *.JPG *.BMP) DO ( | |
ECHO %%G | |
convert -density 72 -units PixelsPerInch -resize "2000x2000>" -quality 90 "%%G" "%%G" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment