<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Jhead on Michael’s Domain</title><link>https://jeltsch.org/en/tags/jhead/</link><description>Recent content in Jhead on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/jhead/index.xml" rel="self" type="application/rss+xml"/><item><title>How to use jhead or exiftool to add a time stamp to a jpg image</title><link>https://jeltsch.org/en/how_to_use_jhead_or_exiftool_to_add_a_time_stamp_to_a_jpg_image/</link><pubDate>Mon, 24 Aug 2009 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/how_to_use_jhead_or_exiftool_to_add_a_time_stamp_to_a_jpg_image/</guid><description>&lt;p&gt;If the jpg image doesn&amp;rsquo;t have exif header you need to create it first:&lt;code&gt;jhead -mkexif&lt;/code&gt;Then enter the time stamp data:&lt;code&gt;jhead -ts2009:08:15-10:30:00&lt;/code&gt;Apart from jhead (
 &lt;a href="http://www.sentex.net/~mwandel/jhead/%29" target="_blank" rel="noopener noreferrer nofollow"&gt;http://www.sentex.net/~mwandel/jhead/)&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
, there is another frequently used tool to edit exif data: exiftool (
 &lt;a href="https://www.sno.phy.queensu.ca/~phil/exiftool/" target="_blank" rel="noopener noreferrer nofollow"&gt;https://www.sno.phy.queensu.ca/~phil/exiftool/&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 ). When you execute exiftool to display the exif data, you get a list like this:&lt;code&gt;user@laptop:~$ exiftool IMG_001.jpgExifTool Version Number : 10.80File Name : IMG_001.jpg[…]Date/Time Original : 2018:09:02 13:20:13Create Date : 2018:09:02 13:20:13[…]&lt;/code&gt;However, in order to modify a value you need to address the individual tag and the tag name that the command line expects is NOT the same that is given in the list (the tag for &amp;ldquo;Create Date&amp;rdquo; is e.g. &amp;ldquo;CreateDate&amp;rdquo;):&lt;code&gt;exiftool -CreateDate='2009:11:32 09:11:24.991000' IMG_001.jpg&lt;/code&gt;Exiftool is probably the most capable tool, but for the same reason, it is not the most easy to use.IN order to remove all exif data, try:&lt;code&gt;exiftool -all=IMG_001.jpg&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Quick edits of jpg files from within Konqueror (jhead, jpegtran)</title><link>https://jeltsch.org/en/quick_edits_of_jpg_files_from_within_konqueror_jhead_jpegtran/</link><pubDate>Sun, 20 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/quick_edits_of_jpg_files_from_within_konqueror_jhead_jpegtran/</guid><description>&lt;p&gt;I wanted to have a quick way to rotate the images I take with my digital camera. The Olympus Camedia C-4000 always writes &amp;ldquo;1&amp;rdquo; als orientation into the EXIF data (either it doesn&amp;rsquo;t have an orientaiton sensor or it is broken), therefore I cannot rotate the images automatically by the command&lt;code&gt;jhead -autorot *.jpg&lt;/code&gt;So I created a desktop file ~/bin/rotate90clockwise.desktpop with the following content&lt;code&gt;[Desktop Entry] ServiceTypes=image/jpeg Actions=rotate90clockwise [Desktop Action rotate90clockwise] Name=Rotate 90 clockwise Icon=/opt/kde3/share/icons/crystalsvg/22x22/actions/rotate_cw.png Exec=/usr/bin/jhead -cmd &amp;quot;jpegtran -rot 90 &amp;amp;i &amp;gt; &amp;amp;o&amp;quot; %U&lt;/code&gt;Then I made a symbolic link&lt;code&gt;sudo ln -sf ~/bin/rotate90clockwise.desktop /opt/kde3/share/apps/konqueror/servicemenus/rotate90clockwise.desktop&lt;/code&gt; Now when I browse files in Konqueror, I get by right-clicking a jpeg file the additonal option of rotating it. The rotation is lossless BTW and the EXIF information in maintaned.
It is also possible to integrate rotation commands into image viewing software. E.g. if the following script is located in ~/bin&lt;code&gt;!/bin/sh jhead -cmd &amp;quot;jpegtran -rot 90 &amp;amp;i &amp;gt; &amp;amp;o&amp;quot; $*&lt;/code&gt;you can call it from within GQView by adding the scriptname in one of the free slots below the &amp;ldquo;big&amp;rdquo; image editors:&lt;code&gt;Menu name Command line Rotate clockwise rotate_clockwise %f&lt;/code&gt;Edit -&amp;gt; Options -&amp;gt; Editors&lt;/p&gt;</description></item></channel></rss>