2_convert 351 B

123456789
  1. #!/bin/bash
  2. echo " => Converting file in little format for Tx"
  3. cd /ramfs
  4. FILE=$(find ./ -type f -name *.jpg)
  5. convert $FILE -resize 640x496^ lit-$(echo $FILE | cut -d"/" -f2)
  6. rm -rf $FILE
  7. mogrify -format 'jpg' -font Liberation-Sans -fill white -undercolor '#00000080' -pointsize 26 -gravity NorthEast -annotate +10+10 "$(date) - F4IYQ - 73 ;)" *.jpg