I fixed the following xptitle command by removing the diacrtical mark in Galápagos below.
1. Is there a way to make xptitle more tolerant of diacritical marks?
2. The title was truncated after the 40th character. What command will allow xptitle to accept long titles?
exiftool.exe -xptitle="The marine iguana is found only on the Galápagos Islands and is unique among modern lizards for its ability forage in the sea" DSC03275.JPG
Warning: Malformed UTF-8 character (unexpected non-continuation byte 0x70, immediately after start byte 0xe1) in unpack in IFD0:XPTitle (ValueConvInv)
Nothing to do.
exiftool.exe -xptitle="The marine iguana is found only on the Galapagos Islands and is unique among modern lizards for its ability forage in the sea" DSC03275.JPG
1 image files updated
Reading FAQ number 10 (https://exiftool.org/faq.html#Q10) may help explain this. ExifTool expects input in UTF-8 by default. I suspect you should use the -L option since you are probably inputting the value in Windows Latin1. There is no length limit on XPTitle.
- Phil
Thank you. The -L option worked fine and we discovered that the xptitle was truncated as a result of a bug in our SAS program.
I find that my HTML files load very slowly in Firefox and I want to reduce the size of my JPG files to increase the speed.
With that objective, please tell me how to delete all the information in an EXIF file except the date and xptitle information. I would like to execute this command
a) for all the JPG images in my directory, or b) for individual JPG images, one at a time.
Can this deletion of all the information (except for the xptitle and dates) be executed with options to alter the xptitle for a single JPG image? If Yes, will I receive an error if I execute the deletion repeatedly?
Will it be an advantage to execute the command for all metradata, or for EXIF alone?
Thanks.
That's a lot of questions.
To delete all information but specific tags, do this:
exiftool -all= -tagsfromfile @ -TAG1 -TAG2 ... FILE
where -TAG1 etc are the tags you want to keep, and FILE is one or more file or directory names. Add a -r option to also recursively process subdirectories inside specified directories.
I'm not sure what you mean when you say "alter the xptitle", but yes, you can certainly do this.
You will not receive an error if you attempt to delete information that doesn't exist.
The EXIF may be up to 64kB, but XMP and trailer information may also be very large (more than this at times). So I would suggest deleting all. But you may want to preserve the ICC_Profile unless your images use the standard sRGB or Adobe RGB profile.
- Phil
c:\apps\exiftool\exiftool.exe -all= -tagsfromfile @ -alldates -orientation -xptitle *.JPG -overwrite_original
I am using the above command to erase all tags except the dates, xptitle and orientation. I find that images rotated to the portrait orientation with the Microsoft Office Picture Manager remain in the landscape orientation after the application of the command shown above. Please tell me what other tags related to orientation must be added to the exception list in the command. Thanks
Sorry, I can't help here. If I had Microsoft Office Picture Manager I would delete tags from a rotated image until the image didn't appear rotated to test this out.
- Phil
I'm not using MS Picture Manager, but I assume it is similar to MS Image and Fax viewer (in WinXP) and Windows Photo viewer (called in Win7): it simply doesn't support/read Orientation tag value.
Bogdan
I would like to try again with the command,
c:\apps\exiftool\exiftool.exe -all= -tagsfromfile @ -alldates -orientation -xptitle *.JPG -overwrite_original
by adding tags for the following attributes:
Exif Image Width, Exif Image Height, Image Width and Image Height
However, I don't know how to create the tags for these attributes. Could you please tell me what they are?
Thanks.
> exiftool -exifimagewidth -exifimageheight -imagewidth -imageheight -G0 a.jpg
[EXIF] Exif Image Width : 100
[EXIF] Exif Image Height : 80
[File] Image Width : 100
[File] Image Height : 80
This command shows you the location of these tags. The "EXIF" tags can be created/deleted, but the "File" tags are part of the JPEG image structure and cannot be changed. You will find the "File" tags in the Extra Tags documentation (https://exiftool.org/TagNames/Extra.html), which indicates they are not writable. The EXIF tags may be written. Typically you want to set these from the JPEG dimensions:
exiftool "-exifimagewidth<imagewidth" "-exifimageheight<imageheight" ...
- Phil
After issuing the following command,
C:\DATA\Pictures\SAmerica2011\Reduced\temp>c:\apps\exiftool\exiftool.exe -all=
-tagsfromfile @ -alldates -orientation -xptitle "-exifimagewidth<imagewidth" "-e
xifimageheight<imageheight" *.JPG -overwrite_original
I found 51 warnings like this one:
Warning: [minor] Possibly incorrect maker notes offsets (fix by -76?) - DSC00015.JPG
concluding with,
361 image files updated
which is the number of JPG files in the directory. Please tell me whether I must fix the command to prevent these warnings, or whether they can be ignored. Thanks.
Try the command on one of the original files that generates a warning with and without the -F option. Then use exiftool to extract all information from both files. It is likely that some makernote information will be corrupted in one of the images. If ExifTool is correct with its guess of -76 to fix the offsets, then the one without the -F will be the corrupted one, but I can't guarantee this because it depends on a number of factors including the original camera model and the software that messed up the offsets.
- Phil
Using the following command to create a caption under a JPG image,
c:\apps\exiftool\exiftool.exe -xptitle="Café Delmas on Rue Mouffetard" DSC00800.JPG -L -overwrite_original
the result was
CafÚ Delmas on Rue Mouffetard
Note the Ú instead of é.
I used the -L option. Please tell me what I did wrong. Thanks
OK. I understand how you wrote the text (which is perfectly correct assuming that your console is using the Windows Latin1 encoding), but how did you read it back again? You should get back exactly what you wrote if you use this command for reading:
c:\apps\exiftool\exiftool.exe -xptitle DSC00800.JPG -L
- Phil
In running the following command to reply to your question,
c:\apps\exiftool\exiftool.exe –htmldump DSC00800.JPG > DSC00800.html
I received the following response:
File not found: ûhtmldump
Please note the û in the response. Please explain what I am doing wrong. Thanks, Bill
Hi Bill,
Somehow it seems that the "-" at the start of "-htmldump" isn't really a dash character in your command. It is some similar-looking Unicode character. I don't know how you did this.
- Phil
I have attached information showing that the xptitle contains Ú instead of é. Thanks, Bill
Hi Bill,
I agree that you have a Ú in the file. So if you used the -L option when writing, I conclude that the text you entered wasn't encoded in the Windows Latin 1 character set. Did you read FAQ number 18 (https://exiftool.org/faq.html#Q18) and FAQ number 10 (https://exiftool.org/faq.html#Q10)?
- Phil