Hi,
I am having trouble with the following command with exiftool 8.15 on MacOSX :
exiftool −tagsfromfile _DSC7826.jpg _DSC7827.jpg works
but
exiftool −tagsfromfile tague/_DSC7826.jpg nontague/_DSC7826.jpg does not...
I dont get what could be wrong... I had the exact same behaviour with exiftool v7.xx before I did the upgrade.
Hope someone can help here...
thanks
PS : looks like I am the very first user to post on this forum beside Phil :)
Yes, congratulations on the first post in the new forum!
What system are you using, and what error messages does exiftool give when the command fails?
Quote from: benkunz on March 24, 2010, 11:14:09 AM
exiftool −tagsfromfile tague/_DSC7826.jpg nontague/_DSC7826.jpg does not...
For this to work, the "tague" and "nontague" directories must be in the current directory. To be sure, try the following command if you are in Windows:
dir tague\_DSC7826.jpg nontague\_DSC7826.jpg
or this command on Mac or Linux:
ls -l tague/_DSC7826.jpg nontague/_DSC7826.jpg
- Phil
Like I said I am on MacOSX. Of course the files mentioned exists:
MacBook:test benoit$ ls -l tague/_DSC7826.jpg nontague/_DSC7826.jpg
-rw-r--r-- 1 benoit staff 3451725 24 mar 10:18 nontague/_DSC7826.jpg
-rw-r--r-- 1 benoit staff 3455145 24 mar 13:19 tague/_DSC7826.jpg
MacBook:test benoit$
here the full output:
MacBook:test benoit$ exiftool −tagsfromfile tague/_DSC7826.jpg nontague/_DSC7826.jpg
File not found: −tagsfromfile
======== tague/_DSC7826.jpg
ExifTool Version Number : 8.15
File Name : _DSC7826.jpg
Directory : tague
File Size : 3.3 MB
File Modification Date/Time : 2010:03:24 13:19:36+01:00
File Permissions : rw-r--r--
File Type : JPEG
MIME Type : image/jpeg
Exif Byte Order : Little-endian (Intel, II)
X Resolution : 300
Y Resolution : 300
Resolution Unit : inches
Software : Picasa 3.0
Make : NIKON CORPORATION
Camera Model Name : NIKON D700
Modify Date : 2010:03:24 10:18:00
Copyright :
Exposure Time : 1/50
F Number : 2.0
Exposure Program : Aperture-priority AE
ISO : 1600
Date/Time Original : 2010:03:20 22:36:20
Create Date : 2010:03:20 22:36:20
Shutter Speed Value : 1/50
Aperture Value : 2.0
Exposure Compensation : 0
Max Aperture Value : 1.4
Metering Mode : Multi-segment
Light Source : Unknown
Flash : No Flash
Focal Length : 50.0 mm
Sub Sec Time : 046
Sub Sec Time Original : 080
Sub Sec Time Digitized : 080
Sensing Method : One-chip color area
Scene Type : Directly photographed
Exposure Mode : Auto
White Balance : Auto
Focal Length In 35mm Format : 50 mm
Scene Capture Type : Standard
Contrast : Normal
Saturation : Normal
Sharpness : Normal
Subject Distance Range : Unknown
Image Unique ID : 2e124f49e6e7ec6d0152dbd98ad6a1f5
GPS Version ID : 0.0.2.2
GPS Latitude Ref : North
GPS Longitude Ref : East
GPS Altitude Ref : Above Sea Level
XMP Toolkit : Adobe XMP Core 4.2-c020 1.124078, Tue Sep 11 2007 23:21:40
Orientation : Horizontal (normal)
Photometric Interpretation : RGB
Samples Per Pixel : 3
ISO Speed Rating : 1600
Exif Version : 0221
Date/Time Digitized : 2010:03:20 22:36:20.080+01:00
Exif Image Width : 3000
Exif Image Height : 2000
Color Space : sRGB
Legacy IPTC Digest : 22E802D370D53FAAE7F48E70E1FDEBFE
Color Mode : 3
ICC Profile Name : sRGB IEC61966-2.1
Rating : 3
Creator Tool : Bibble 5 Pro 5.0.2a
Metadata Date : 2010:03:24 13:18:49+01:00
Already Applied : True
Flash Fired : False
Flash Return : No return detection
Flash Mode : Unknown
Flash Function : False
Flash Red Eye Mode : False
Hierarchical Subject : Personnes|emilie, TypePhoto|portrait
Subject : emilie, portrait
Profile CMM Type : Lino
Profile Version : 2.1.0
Profile Class : Display Device Profile
Color Space Data : RGB
Profile Connection Space : XYZ
Profile Date Time : 1998:02:09 06:49:00
Profile File Signature : acsp
Primary Platform : Microsoft Corporation
CMM Flags : Not Embedded, Independent
Device Manufacturer : IEC
Device Model : sRGB
Device Attributes : Reflective, Glossy, Positive, Color
Rendering Intent : Media-Relative Colorimetric
Connection Space Illuminant : 0.9642 1 0.82491
Profile Creator : HP
Profile ID : 0
Profile Copyright : Copyright (c) 1998 Hewlett-Packard Company
Profile Description : sRGB IEC61966-2.1
Media White Point : 0.95045 1 1.08905
Media Black Point : 0 0 0
Red Matrix Column : 0.43607 0.22249 0.01392
Green Matrix Column : 0.38515 0.71687 0.09708
Blue Matrix Column : 0.14307 0.06061 0.7141
Device Mfg Desc : IEC http://www.iec.ch
Device Model Desc : IEC 61966-2.1 Default RGB colour space - sRGB
Viewing Cond Desc : Reference Viewing Condition in IEC61966-2.1
Viewing Cond Illuminant : 19.6445 20.3718 16.8089
Viewing Cond Surround : 3.92889 4.07439 3.36179
Viewing Cond Illuminant Type : D50
Luminance : 76.03647 80 87.12462
Measurement Observer : CIE 1931
Measurement Backing : 0 0 0
Measurement Geometry : Unknown (0)
Measurement Flare : 0.999%
Measurement Illuminant : D65
Technology : Cathode Ray Tube Display
Red Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Green Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Current IPTC Digest : 7ee9df67a88a0dd65669165d55c4b590
Date Created : 2010:03:20
Keywords : emilie, portrait
Image Width : 3000
Image Height : 2000
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1)
Aperture : 2.0
GPS Altitude : 0 m Above Sea Level
GPS Latitude : 48 deg 41' 26.84" N
GPS Longitude : 6 deg 10' 57.02" E
GPS Position : 48 deg 41' 26.84" N, 6 deg 10' 57.02" E
Image Size : 3000x2000
Scale Factor To 35 mm Equivalent: 1.0
Shutter Speed : 1/50
Create Date : 2010:03:20 22:36:20.080
Date/Time Original : 2010:03:20 22:36:20.080
Modify Date : 2010:03:24 10:18:00.046
Circle Of Confusion : 0.030 mm
Field Of View : 39.6 deg
Focal Length : 50.0 mm (35 mm equivalent: 50.0 mm)
Hyperfocal Distance : 41.60 m
Light Value : 3.6
======== nontague/_DSC7826.jpg
ExifTool Version Number : 8.15
File Name : _DSC7826.jpg
Directory : nontague
File Size : 3.3 MB
File Modification Date/Time : 2010:03:24 10:18:18+01:00
File Permissions : rw-r--r--
File Type : JPEG
MIME Type : image/jpeg
Exif Byte Order : Big-endian (Motorola, MM)
X Resolution : 300
Y Resolution : 300
Resolution Unit : inches
Software : Bibble 5 Pro 5.0.2a
Make : NIKON CORPORATION
Camera Model Name : NIKON D700
Modify Date : 2010:03:24 10:18:00
Copyright :
Exposure Time : 1/50
F Number : 2.0
Exposure Program : Aperture-priority AE
ISO : 1600
Date/Time Original : 2010:03:20 22:36:20
Create Date : 2010:03:20 22:36:20
Shutter Speed Value : 1/50
Aperture Value : 2.0
Exposure Compensation : 0
Max Aperture Value : 1.4
Metering Mode : Multi-segment
Light Source : Unknown
Flash : No Flash
Focal Length : 50.0 mm
Sub Sec Time : 046
Sub Sec Time Original : 080
Sub Sec Time Digitized : 080
Sensing Method : One-chip color area
Scene Type : Directly photographed
Exposure Mode : Auto
White Balance : Auto
Focal Length In 35mm Format : 50 mm
Scene Capture Type : Standard
Contrast : Normal
Saturation : Normal
Sharpness : Normal
Subject Distance Range : Unknown
XMP Toolkit : XMP Core 4.4.0
ISO Speed Rating : 1600
Rating : 0
Profile CMM Type : Lino
Profile Version : 2.1.0
Profile Class : Display Device Profile
Color Space Data : RGB
Profile Connection Space : XYZ
Profile Date Time : 1998:02:09 06:49:00
Profile File Signature : acsp
Primary Platform : Microsoft Corporation
CMM Flags : Not Embedded, Independent
Device Manufacturer : IEC
Device Model : sRGB
Device Attributes : Reflective, Glossy, Positive, Color
Rendering Intent : Media-Relative Colorimetric
Connection Space Illuminant : 0.9642 1 0.82491
Profile Creator : HP
Profile ID : 0
Profile Copyright : Copyright (c) 1998 Hewlett-Packard Company
Profile Description : sRGB IEC61966-2.1
Media White Point : 0.95045 1 1.08905
Media Black Point : 0 0 0
Red Matrix Column : 0.43607 0.22249 0.01392
Green Matrix Column : 0.38515 0.71687 0.09708
Blue Matrix Column : 0.14307 0.06061 0.7141
Device Mfg Desc : IEC http://www.iec.ch
Device Model Desc : IEC 61966-2.1 Default RGB colour space - sRGB
Viewing Cond Desc : Reference Viewing Condition in IEC61966-2.1
Viewing Cond Illuminant : 19.6445 20.3718 16.8089
Viewing Cond Surround : 3.92889 4.07439 3.36179
Viewing Cond Illuminant Type : D50
Luminance : 76.03647 80 87.12462
Measurement Observer : CIE 1931
Measurement Backing : 0 0 0
Measurement Geometry : Unknown (0)
Measurement Flare : 0.999%
Measurement Illuminant : D65
Technology : Cathode Ray Tube Display
Red Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Green Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Current IPTC Digest : 5fb08f124ee6ae8571461588d303ef84
Coded Character Set : UTF8
Application Record Version : 4
Date Created : 2010:03:20
Time Created : 22:36:20
Image Width : 3000
Image Height : 2000
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1)
Aperture : 2.0
Date/Time Created : 2010:03:20 22:36:20
Image Size : 3000x2000
Scale Factor To 35 mm Equivalent: 1.0
Shutter Speed : 1/50
Create Date : 2010:03:20 22:36:20.080
Date/Time Original : 2010:03:20 22:36:20.080
Modify Date : 2010:03:24 10:18:00.046
Circle Of Confusion : 0.030 mm
Field Of View : 39.6 deg
Focal Length : 50.0 mm (35 mm equivalent: 50.0 mm)
Hyperfocal Distance : 41.60 m
Light Value : 3.6
2 image files read
1 files could not be read
MacBook:test benoit$
Ah yes, Mac OS. Sorry, I missed that.
The problem is the dash in "-tagsFromFile" isn't a dash. Type the command out using the minus sign on the keyboard and it will work. This happens if you cut and paste from some forms of documentation. On OS X 10.5 for instance, perldoc converts dashes to some funny unicode character for some reason. Hence the following note in the docs:
QuoteNote: Beware when cutting and pasting these examples into your termi-
nal! Some characters such as single and double quotes and hyphens may
have been changed into similar-looking but functionally-different char-
acters by the text formatter used to display this documentation.
ok it worked. it's weird though...
thanks anyway
Quote from: benkunz on March 25, 2010, 03:06:38 PM
it's weird though...
I agree. I consider this a bug in perldoc. :(
I did some more checking, and here are three good references for this problem (in reverse chronological order):
1) http://www.simplicidade.org/notes/archives/2009/05/fixing_the_pod.html (http://www.simplicidade.org/notes/archives/2009/05/fixing_the_pod.html)
2) http://blog.timbunce.org/2009/05/19/fixing-the-pod-synopsis-in-osx-take-2-perldoc-nroff-and-utf-8/ (http://blog.timbunce.org/2009/05/19/fixing-the-pod-synopsis-in-osx-take-2-perldoc-nroff-and-utf-8/)
3) http://marcus.nordaaker.com/2009/05/fixing-the-pod-synopsis-in-osx/ (http://marcus.nordaaker.com/2009/05/fixing-the-pod-synopsis-in-osx/)
It turns out that the problem is in nroff, not perldoc. (perldoc pipes its output through nroff for formatting.) According to the first reference, the bug could be fixed in a Mac OS update. I know the problem exists with OS X 10.5, but I can't test to see if this was fixed in 10.6.
- Phil