sudo apt install imagemagick
identify -verbose my-image.jpg
Image:
Filename: my-image.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 959x1280+0+0
Units: Undefined
Colorspace: sRGB
Type: TrueColor
Base type: Undefined
Endianness: Undefined
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 1227520
Red:
min: 0 (0)
max: 255 (1)
mean: 143.904 (0.56433)
standard deviation: 57.5508 (0.225689)
kurtosis: -0.194535
skewness: -0.794753
entropy: 0.939995
Green:
min: 0 (0)
max: 255 (1)
mean: 131.366 (0.515162)
standard deviation: 59.2677 (0.232422)
kurtosis: -0.795058
skewness: -0.326629
entropy: 0.954883
Blue:
min: 0 (0)
max: 255 (1)
mean: 126.908 (0.497678)
standard deviation: 59.5208 (0.233415)
kurtosis: -0.99523
skewness: -0.0626051
entropy: 0.956083
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 134.06 (0.525724)
standard deviation: 58.7798 (0.230509)
kurtosis: -0.792814
skewness: -0.383003
entropy: 0.950321
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: JPEG
Intensity: Undefined
Compose: Over
Page geometry: 959x1280+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 72
Orientation: Undefined
Properties:
date:create: 2024-10-26T16:19:51+00:00
date:modify: 2024-10-26T16:19:15+00:00
jpeg:colorspace: 2
jpeg:sampling-factor: 2x2,1x1,1x1
signature: f7876a34aa1a0f4d96c2746c7d6d15eba37611fd7f272aa7c7c3ac82d163a563
Artifacts:
filename: brat1.jpg
verbose: true
Tainted: False
Filesize: 156335B
Number pixels: 1227520
Pixels per second: 53228800B
User time: 0.020u
Elapsed time: 0:01.023
Version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
Changing date/time
Tried this, but without a success:
convert my-image.jpg -set "date:create" "2023-10-26T16:19:51+00:00" output.jpg
identify -verbose output.jpg
Image:
Filename: output.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 959x1280+0+0
Units: Undefined
Colorspace: sRGB
Type: TrueColor
Base type: Undefined
Endianness: Undefined
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 1227520
Red:
min: 0 (0)
max: 255 (1)
mean: 143.911 (0.564356)
standard deviation: 57.5158 (0.225552)
kurtosis: -0.198909
skewness: -0.79364
entropy: 0.940451
Green:
min: 0 (0)
max: 255 (1)
mean: 131.367 (0.515164)
standard deviation: 59.2565 (0.232379)
kurtosis: -0.79579
skewness: -0.326658
entropy: 0.954928
Blue:
min: 0 (0)
max: 255 (1)
mean: 126.905 (0.497668)
standard deviation: 59.5034 (0.233347)
kurtosis: -0.997046
skewness: -0.0629508
entropy: 0.956157
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 134.061 (0.525729)
standard deviation: 58.7586 (0.230426)
kurtosis: -0.794813
skewness: -0.382768
entropy: 0.950512
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 959x1280+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 72
Orientation: Undefined
Properties:
date:create: 2024-10-26T16:45:38+00:00
date:modify: 2024-10-26T16:45:38+00:00
jpeg:colorspace: 2
jpeg:sampling-factor: 2x2,1x1,1x1
signature: cf990748b4897f50475bc778c8838b4b4acc51f4dc38d49fef92a29bc8d6bce4
Artifacts:
filename: output.jpg
verbose: true
Tainted: False
Filesize: 159199B
Number pixels: 1227520
Pixels per second: 89.9625MB
User time: 0.010u
Elapsed time: 0:01.013
Version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
why?
How To View Image Metadata On Linux
https://ostechnix.com/how-to-view-image-metadata-on-linux/
Can someone recommend an Exif editor?
https://askubuntu.com/questions/9341/can-someone-recommend-an-exif-editor
How to get/edit EXIF meta-data of multiple images?
https://askubuntu.com/questions/101688/how-to-get-edit-exif-meta-data-of-multiple-images
jhead -ts2012:10:29-10:28:03 *.jpg
adding date and time to the image using imagemagick via PHP?
https://stackoverflow.com/questions/55664747/adding-date-and-time-to-the-image-using-imagemagick-via-php