ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: ytzhiyuan on February 24, 2023, 01:51:10 AM

Title: How to generate thumbnail for a picutre with cli
Post by: ytzhiyuan on February 24, 2023, 01:51:10 AM
I need to generate thumbnail for a picture.It is best to define the thumbnail size.
Title: Re: How to generate thumbnail for a picutre with cli
Post by: StarGeek on February 24, 2023, 01:58:33 AM
Exiftool cannot modify the actual image data, only the metadata of a file.  You'll want to look at something like ImageMagick to create thumbnails from the command line.  After the thumbnail has been created, then exiftool can embed that thumbnail.  See this example command (https://exiftool.org/exiftool_pod.html#exiftool--ThumbnailImage-thumb.jpg-dst.jpg).
Title: Re: How to generate thumbnail for a picutre with cli
Post by: ytzhiyuan on February 24, 2023, 02:00:26 AM
Quote from: StarGeek on February 24, 2023, 01:58:33 AMExiftool cannot modify the actual image data, only the metadata of a file.  You'll want to look at something like ImageMagick to create thumbnails from the command line.  After the thumbnail has been created, then exiftool can embed that thumbnail.  See this example command (https://exiftool.org/exiftool_pod.html#exiftool--ThumbnailImage-thumb.jpg-dst.jpg).
ok,thanks