Last active
August 29, 2015 14:03
-
-
Save sbellver/df925c7486b8b255c938 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
#!/bin/bash | |
#title :imagenesDelBlog.sh | |
#description :Este script prepara las imagenes antes de subirlas al Blog. | |
#author :Sergio Bellver Aliaga | |
#date :20140701 | |
#version :0.2 | |
#usage :sh imagenesDelBlog.sh /ruta/del/directorio NombreDeLaEntrada_ | |
cd $1 | |
jhead -autorot *.jpg | |
sips -Z 960 *.jpg | |
exiv2 -r $2'%y%m%d-%H%M%S' -F rename *.jpg | |
find . -name "*.jpg" -type f -exec composite -gravity southeast -quality 100 -dissolve 30% /path/to/logo.png {} {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment