Tiff tag viewing using exiftool -D <imagename>

Started by Archive, May 12, 2010, 08:53:57 AM

Previous topic - Next topic

Archive

[Originally posted by ravi on 2006-10-19 16:19:39-07]

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...

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

Code:
   $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

Archive

[Originally posted by exiftool on 2006-10-19 16:40:03-07]

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 (philharvey66 at gmail.com),
otherwise can you send me a link so I can download it myself?

Thanks.

- Phil

Archive

[Originally posted by ravi on 2006-10-19 21:32:05-07]

hi phil,
I sent you the image file, Just wanted to know if you got it or not
thanks
ravi

Archive

[Originally posted by exiftool on 2006-10-19 23:23:56-07]

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:

Code:
[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:

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

Thanks.

- Phil

Archive

[Originally posted by ravi on 2006-10-20 20:37:59-07]

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
Code:
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.

Code:
   - 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

Archive

[Originally posted by exiftool on 2006-10-20 21:52:20-07]

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

Archive

[Originally posted by exiftool on 2006-10-21 12:05:49-07]

I got my hands on a Windows machine, and tested this out.  The command is

Code:
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