Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add date on photo
#20
(06-23-2022, 11:07 AM)rich2005 Wrote:
(06-22-2022, 03:51 PM)Stephen Liu Wrote: I'll turn to IM command which can batch processing all photos in the same folder with one command.  It is very convenient.
Now I'm searching the command for complex text;
1st line - x font, x text size, x color
2nd line - y font, y text size, x color
3rd line - z font, z text size, z color
etc.

......
However, for multi-line you need something like this

Code:
mogrify \
-define jpg -font Futura-Bold.ttf -pointsize 48 -fill red  -annotate +50+100 "line 1" \
-font Ubuntu-M.ttf -pointsize 48 -fill green  -annotate +50+150 "line 2" \
-font Futura-Bold.ttf -pointsize 30 -fill blue  -annotate +50+200 "line 3" *.jpg

Note you need the font files (ttf) in the same place as the images. Example:
Thanks for your advice.  Performed following test;

$ convert \
> -define jpg -font UbuntuMono-B.ttf -pointsize 70 -fill red  -annotate +450+150 "Today: June 25, 2022" \
> -font UbuntuMono-B.ttf -pointsize 60 -fill green  -annotate +450+150 "Photographed at Home" \
> -font UbuntuMono-B.ttf -pointsize 60 -fill blue  -annotate +450+150 "Age: 6 months" p01_60.jpg p01_60_date.jpg
Code:
convert-im6.q16: unable to read font `UbuntuMono-B.ttf' @ warning/annotate.c/RenderType/915.

$ fc-list | grep UbuntuMono-B.ttf
Code:
/usr/share/fonts/truetype/ubuntu/UbuntuMono-B.ttf: Ubuntu Mono:style=Bold

Failed

Regards
Reply


Messages In This Thread
How to add date on photo - by Stephen Liu - 06-22-2022, 03:05 AM
RE: How to add date on photo - by PixLab - 06-22-2022, 06:02 AM
RE: How to add date on photo - by Stephen Liu - 06-22-2022, 06:28 AM
RE: How to add date on photo - by rich2005 - 06-22-2022, 07:27 AM
RE: How to add date on photo - by Stephen Liu - 06-22-2022, 09:41 AM
RE: How to add date on photo - by rich2005 - 06-22-2022, 11:14 AM
RE: How to add date on photo - by PixLab - 06-22-2022, 11:28 AM
RE: How to add date on photo - by Stephen Liu - 06-22-2022, 11:59 AM
RE: How to add date on photo - by PixLab - 06-22-2022, 12:11 PM
RE: How to add date on photo - by Stephen Liu - 06-22-2022, 12:21 PM
RE: How to add date on photo - by rich2005 - 06-22-2022, 12:09 PM
RE: How to add date on photo - by rich2005 - 06-22-2022, 12:27 PM
RE: How to add date on photo - by Stephen Liu - 06-22-2022, 02:04 PM
RE: How to add date on photo - by rich2005 - 06-22-2022, 02:32 PM
RE: How to add date on photo - by Stephen Liu - 06-22-2022, 02:46 PM
RE: How to add date on photo - by PixLab - 06-22-2022, 04:10 PM
RE: How to add date on photo - by sallyanne - 06-22-2022, 03:28 PM
RE: How to add date on photo - by Stephen Liu - 06-22-2022, 03:51 PM
RE: How to add date on photo - by rich2005 - 06-23-2022, 11:07 AM
RE: How to add date on photo - by Stephen Liu - 06-25-2022, 05:21 AM
RE: How to add date on photo - by rich2005 - 06-25-2022, 07:18 AM
RE: How to add date on photo - by Stephen Liu - 06-25-2022, 07:56 AM
RE: How to add date on photo - by rich2005 - 06-25-2022, 08:39 AM

Forum Jump: