Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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