2 added 264 characters in body
source | link

Yes there is, use exiftool. Under Debian/Ubuntu this can be installed with

sudo apt install libimage-exiftool-perl

Something like this should work (assuming the *** show the time):

exiftool "-datetimeoriginal<filename" Screenshot_YYYYMMDD-HHMMSS.png

exiftool detects the dateformat on its own, you can look at the current EXIF metadata (and some more by simply calling the tool with the filename:

exiftool Screenshot_YYYYMMDD-HHMMSS.png

If you have a filename which can't be automatically read by exiftool, you can use the -d Parameter to clear things up for exiftool. Again, for your example:

exiftool "-datetimeoriginal<filename" -d Screenshot_%Y%m%d-%H%M%S Screenshot_YYYYMMDD-HHMMSS.png

Yes there is, use exiftool. Under Debian/Ubuntu this can be installed with

sudo apt install libimage-exiftool-perl

Something like this should work (assuming the *** show the time):

exiftool "-datetimeoriginal<filename" Screenshot_YYYYMMDD-HHMMSS.png

exiftool detects the dateformat on its own, you can look at the current EXIF metadata (and some more by simply calling the tool with the filename:

exiftool Screenshot_YYYYMMDD-HHMMSS.png

Yes there is, use exiftool. Under Debian/Ubuntu this can be installed with

sudo apt install libimage-exiftool-perl

Something like this should work (assuming the *** show the time):

exiftool "-datetimeoriginal<filename" Screenshot_YYYYMMDD-HHMMSS.png

exiftool detects the dateformat on its own, you can look at the current EXIF metadata (and some more by simply calling the tool with the filename:

exiftool Screenshot_YYYYMMDD-HHMMSS.png

If you have a filename which can't be automatically read by exiftool, you can use the -d Parameter to clear things up for exiftool. Again, for your example:

exiftool "-datetimeoriginal<filename" -d Screenshot_%Y%m%d-%H%M%S Screenshot_YYYYMMDD-HHMMSS.png
1
source | link

Yes there is, use exiftool. Under Debian/Ubuntu this can be installed with

sudo apt install libimage-exiftool-perl

Something like this should work (assuming the *** show the time):

exiftool "-datetimeoriginal<filename" Screenshot_YYYYMMDD-HHMMSS.png

exiftool detects the dateformat on its own, you can look at the current EXIF metadata (and some more by simply calling the tool with the filename:

exiftool Screenshot_YYYYMMDD-HHMMSS.png