Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Add Time And Date Text To JPEG File From Command Line

6 views
Skip to first unread message

Dr Stephen Strange

unread,
Jan 21, 2024, 9:58:58 AMJan 21
to
I have a webcam that captures a JPG file at regular intervals which I
then upload to my site using rsync all done via a cronjob

Is there any way I can overlay a Time And Date stamp onto the JPG file
from the command line (ie a bash script) before I upload it??

Alan Browne

unread,
Jan 21, 2024, 12:00:24 PMJan 21
to
Do you mean date-time stamp in into the meta data or write the date and
time as a visible stamp onto the image?

I) For the former use exiftool (you can download and install this from):
https://exiftool.org/install.html#MacOS

Then google on how to do what you want to do. Exiftool is very potent
but not easy to determine the commands in some cases. But somebody out
there has figured it out.



II) For the later:
If it's a simple one-time thing for one or a few photos, you could open
them in preview and use markup to add a text field.

Otherwise, there are various watermarking tools such as Fotor . I have
not tried it. Google away.

--
“Markets can remain irrational longer than your can remain solvent.”
- John Maynard Keynes.

Dr Stephen Strange

unread,
Jan 23, 2024, 8:32:51 AMJan 23
to
Doc O'Leary wrote:
> For your reference, records indicate that
> Not Mac-specific, but that’s the kind of thing I would use ImageMagick to
> do (normally on the Linux server side of the process). On the Mac,
> Automator seems to have a “Create Banner Image From Text” action, and
> Shortcuts seems to have “Overlay Text”, so those would be my starting
> points if I wasn’t able to use ImageMagick.
>
Ok thanks for the replies

0 new messages