Thread

Posted on Thu Oct 19 19:19:39 2006 by ravi
Tiff tag viewing using exiftool -D <imagename>
Hi, I have a multiple tiff images, which i have merged into one image, I have to modifiy the tag of the merged image, I edited the config file to add the tiff tags. After I run the exiftool to add the new tags, but the problem is I can add some tags but not all the tags. for your information i am giving u a sample code...
#ADDED these tags. 'Image::ExifTool::Exif::Main' => { 45000 => { Name => 'mno', Writable => 'string', WriteGroup => 'IFD0', }, 60001 => { Name => 'xyz', Writable => 'string', WriteGroup => 'IFD0', }, 60002 => { Name => 'klm', Writable => 'string', WriteGroup => 'IFD0', }, 60003 => { Name => 'ghi', Writable => 'string', WriteGroup => 'IFD0', }, 60004 => { Name => 'abc', Writable => 'string', WriteGroup => 'IFD0', }, 60005 => { Name => 'def', Writable => 'string', WriteGroup => 'IFD0', }, },
i am calling the exiftool as follows
$exifTool1->SetNewValue('mno' => $filename[0]); $exifTool1->SetNewValue('xyz' => 'TT'); $exifTool1->SetNewValue('klm' => '11'); $exifTool1->SetNewValue('ghi' => '22'); $exifTool1->SetNewValue('abc' => $date); $exifTool1->SetNewValue('def' => 'F002'); $exifTool1->WriteInfo($file);
1 i have downloaded a tiff tag viewer, i could only view the tag with mno abc and def respectively, i cannot see xyz, klm, ghi. 2. when i use exiftool -D myimage it does not show me the tags which i added. (I can see the tags which came origianly with the image)
P.S If it is a single page image then i can add the tags, nonethe less i cannot see the tiff tags which i added bu using exiftool -D myimage
Thanks in advance for your advice
thanks ravi
Direct Responses: 3286 | Write a response
Posted on Thu Oct 19 19:40:03 2006 by exiftool in response to 3284
Re: Tiff tag viewing using exiftool -D <imagename>
I think I need a sample image to reproduce the problem. I have a TIFF file here containing 12 images, and I am able to add your new tags to this file with no problem.

If the image isn't too large (<10MB), you can email it to me (phil at owl.phy.queensu.ca), otherwise can you send me a link so I can download it myself?

Thanks.

- Phil
Direct Responses: 3295 | Write a response
Posted on Fri Oct 20 00:32:05 2006 by ravi in response to 3286
Re: Tiff tag viewing using exiftool -D <imagename>
hi phil, I sent you the image file, Just wanted to know if you got it or not thanks ravi
Direct Responses: 3297 | Write a response
Posted on Fri Oct 20 02:23:56 2006 by exiftool in response to 3295
Re: Tiff tag viewing using exiftool -D <imagename>
Hi ravi. I got your TIFF file, thanks.

I added your user-defined tags, and used your code to add the tags to this image with a small Perl script. The problem is that everything worked:

[19:12 phil@Phils-Home-G4:~/source/exiftool_cvs]% ./exiftool -D merged.tif - ExifTool Version Number : 6.49 - File Name : merged.tif - File Size : 560 kB - File Modification Date/Time : 2006:10:19 19:11:18 - File Type : TIFF - MIME Type : image/tiff 256 Image Width : 416 257 Image Height : 300 258 Bits Per Sample : 8 8 8 259 Compression : Uncompressed 262 Photometric Interpretation : RGB 274 Orientation : Horizontal (normal) 277 Samples Per Pixel : 3 278 Rows Per Strip : 6 282 X Resolution : 100 283 Y Resolution : 100 284 Planar Configuration : Chunky 296 Resolution Unit : inches 273 Strip Offsets : (Binary data 174 bytes, use -b option to extract) 279 Strip Byte Counts : (Binary data 124 bytes, use -b option to extract) 305 Software : IrfanView - Base Name : merged - Extension : tif - Image Size : 416x300 [19:13 phil@Phils-Home-G4:~/source/exiftool_cvs]% ./ttt merged.tif 1 files processed. [19:14 phil@Phils-Home-G4:~/source/exiftool_cvs]% ./exiftool -D merged.tif - ExifTool Version Number : 6.49 - File Name : merged.tif - File Size : 560 kB - File Modification Date/Time : 2006:10:19 19:14:09 - File Type : TIFF - MIME Type : image/tiff 256 Image Width : 416 257 Image Height : 300 258 Bits Per Sample : 8 8 8 259 Compression : Uncompressed 262 Photometric Interpretation : RGB 274 Orientation : Horizontal (normal) 277 Samples Per Pixel : 3 278 Rows Per Strip : 6 282 X Resolution : 100 283 Y Resolution : 100 284 Planar Configuration : Chunky 296 Resolution Unit : inches 45000 Mno : FILENAME0 60001 Xyz : TT 60002 Klm : 11 60003 Ghi : 22 60004 Abc : DATE 60005 Def : F002 273 Strip Offsets : (Binary data 159 bytes, use -b option to extract) 279 Strip Byte Counts : (Binary data 124 bytes, use -b option to extract) 305 Software : IrfanView - Base Name : merged - Extension : tif - Image Size : 416x300
My best guess is that the user-defined tags aren't getting loaded properly when you are looking at the image. Use the -u option to see any unknown tags. But this hypothesis isn't really consistent with the fact that you seem to be able to write at least some of the tags. So I'm still not sure what is going on. Please try the following commands and post the console output:

exiftool -mno=1 -xyz=2 -klm=3 -ghi=4 -abc=5 -def=6 -v2 merged.tif exiftool -D -u merged.tif

Thanks.

- Phil
Direct Responses: 3301 | Write a response
Posted on Fri Oct 20 23:37:59 2006 by ravi in response to 3297
Re: Tiff tag viewing using exiftool -D <imagename>
Hi Phil, I apologize for the delay in the reply, below is the dump of what i get, I can see the USER DEFINED TAGS by using exiftool -u -D filename. But unfortunately the names seems to be addresses. what should i do to be able to see the names. Also when i use the above command

exiftool -mno=1 -xyz=2 -klm=3 -ghi=4 -abc=5 -def=6 -v2 merged.tif exiftool -D -u merged.tif


I get the following message
Tag 'mno' does not exist Tag 'xyz' does not exist Tag 'klm' does not exist Tag 'ghi' does not exist Tag 'abc' does not exist Tag 'def' does not exist Nothing to do.
Your advice is as always highly appreciated.
- ExifTool Version Number : 6.48 - File Name : merged.tif - File Size : 560 kB - File Modification Date/Time : 2006:10:20 16:27:32 - File Type : TIFF - MIME Type : image/tiff 256 Image Width : 416 257 Image Height : 300 258 Bits Per Sample : 8 8 8 259 Compression : Uncompressed 262 Photometric Interpretation : RGB 274 Orientation : Horizontal (normal) 277 Samples Per Pixel : 3 278 Rows Per Strip : 6 282 X Resolution : 100 283 Y Resolution : 100 284 Planar Configuration : Chunky 296 Resolution Unit : inches 45000 Exif 0xafc8 : merged 60001 Exif 0xea61 : TT 60002 Exif 0xea62 : 11 60003 Exif 0xea63 : 22 60004 Exif 0xea64 : 06135 60005 Exif 0xea65 : mytestimage 273 Strip Offsets : (Binary data 159 bytes, use -b option to extract) 279 Strip Byte Counts : (Binary data 124 bytes, use -b option to extract) 305 Software : IrfanView - Image Size : 416x300

Thanks

Ravi
Direct Responses: 3302 | Write a response
Posted on Sat Oct 21 00:52:20 2006 by exiftool in response to 3301
Re: Tiff tag viewing using exiftool -D <imagename>
Hi Ravi,

It seems that exiftool is not loading your ".ExifTool_config" file when it runs. (You must be running Windows, right? This hasn't been a problem on other systems.) You can read the comments at the top of the ExifTool_config file for details, but the easiest thing to do may be to set the EXIFTOOL_HOME environment variable to point to the directory where the ".ExifTool_config" file exists. Unfortunately I'm not a Windows expert, but usually a command something like "set EXIFTOOL_HOME c:\exiftool" or something like that is what you want. I'm afraid I'm going to have to let you work out the details since I'm not familiar with the Windows shells.

Let me know how it goes.

- Phil
Direct Responses: 3304 | Write a response
Posted on Sat Oct 21 15:05:49 2006 by exiftool in response to 3302
Re: Tiff tag viewing using exiftool -D <imagename>
I got my hands on a Windows machine, and tested this out. The command is

set EXIFTOOL_HOME=c:\path_to_config_file

But I have just released ExifTool 6.49 with a new feature that gives you an additional option here. This version will also look in the same directory as the "exiftool" script for the ".ExifTool_config" file, which gives you a way to avoid these nasty environment variables.

- Phil
Write a response