lunes, noviembre 29, 2010

Batch Adding Text (File Name) to JPEG Images

for f in *.jpg; do fn=${f%.*}; convert ${fn}.jpg -fill black -gravity SouthEast -pointsize 14 -annotate +0+5 "${fn}" ${fn}_annotated.jpg ;done

http://ask.metafilter.com/107722/Batch-Adding-Text-File-Name-to-JPEG-Images