SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : Linux OS.: Technical questions

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
From: Thomas A Watson11/3/2014 11:57:34 AM
   of 484
 
Annotate image bash script using

Version: ImageMagick 6.7.7-10 2014-03-06 Q16 imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC

watson@xen1[54]cat `which annotate`
#!/bin/bash
# /user/local/bin/annotate
# ver .9
# arg1 image
# arg2 text
# arg3 gravity east west south north default north northeast northwest ....
# default point size 48
# arg4 pointsize

if [ "$1" == "" ]; then
echo usage: annotate image annotation [ gravity ] [pointsize "48"]
echo usage: annotate image annotation [east west south "north"] [pointsize "48"]
exit
fi

if [ "$3" == "" ]; then
gravity="north"
else
gravity="$3"
fi

if [ "$4" == "" ]; then
pointsize="48"
else
pointsize="$4"
fi

echo convert $1 -pointsize $pointsize -draw "gravity $gravity fill black text 0,12 '$2' fill white text 1,12 '$2' " $1

convert $1 -pointsize $pointsize -draw "gravity $gravity fill black text 0,12 '$2' fill white text 1,12 '$2' " $1

# convert DSC00275.jpg -pointsize 48 -draw "gravity north fill black text 0,12 'Date/Time : 2014:08:16 17:06:56'fill white text 1,12 'Date/Time : 2014:08:16 17:06:56'" DSC00275.jpg
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext