← 返回命令列表

Linux command

jhead 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

jhead image.jpg

Example

jhead -ft image.jpg

Example

jhead -dsft image.jpg

Rename

jhead -n%Y_%m_%d-%H_%M_%S *.jpg

Auto-rotate

jhead -autorot *.jpg

Adjust

jhead -ta-1:00:00 *.jpg

Remove

jhead -purejpg image.jpg

Delete

jhead -dt image.jpg

说明

jhead is a utility for displaying and manipulating EXIF metadata in JPEG images from digital cameras. It can adjust timestamps, remove thumbnails, auto-rotate images, and transfer EXIF headers between files.

参数

-ft
Set file modification time to EXIF create date
-dsft
Set EXIF timestamp to file modification time
-n FORMAT
Rename files using strftime format based on EXIF date
-autorot
Rotate images losslessly based on EXIF orientation tag
-ta OFFSET
Adjust EXIF time by offset (format: +/-HH:MM:SS)
-da NEWDATE-OLDDATE
Correct large date offsets
-purejpg
Remove all non-essential sections and metadata
-de
Delete entire EXIF header
-dt
Delete thumbnail from EXIF header
-dc
Delete comment field
-te FILE
Transfer EXIF header from another file
-ce
Edit comment field in text editor
-cl STRING
Set comment from command line
-st FILE
Save thumbnail to file
-rgt SIZE
Regenerate thumbnail with specified size
-mkexif
Create minimal EXIF header

FAQ

What is the jhead command used for?

jhead is a utility for displaying and manipulating EXIF metadata in JPEG images from digital cameras. It can adjust timestamps, remove thumbnails, auto-rotate images, and transfer EXIF headers between files.

How do I run a basic jhead example?

Run `jhead image.jpg` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -ft do in jhead?

Set file modification time to EXIF create date