Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sbellver
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbellver/df925c7486b8b255c938 to your computer and use it in GitHub Desktop.
Save sbellver/df925c7486b8b255c938 to your computer and use it in GitHub Desktop.
#!/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