• Add Time And Date Text To JPEG File From Command Line

    From Dr Stephen Strange@21:1/5 to All on Sun Jan 21 14:58:44 2024
    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??

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Browne@21:1/5 to Dr Stephen Strange on Sun Jan 21 12:00:19 2024
    On 2024-01-21 09:58, Dr Stephen Strange wrote:
    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??

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Doc O'Leary ,@21:1/5 to Dr Stephen Strange on Sun Jan 21 21:34:53 2024
    For your reference, records indicate that
    Dr Stephen Strange <no.spam@me.com> wrote:

    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??

    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.

    --
    "Also . . . I can kill you with my brain."
    River Tam, Trash, Firefly

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dr Stephen Strange@21:1/5 to Doc O'Leary on Tue Jan 23 13:32:35 2024
    Doc O'Leary wrote:
    For your reference, records indicate that
    Dr Stephen Strange <no.spam@me.com> wrote:

    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??

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)