FiddleMaker wrote:
Wow !!! this stuff is way over my head !!!
ok i'll try and simplify its command line so its a little basic i'm assuming you don't know where things live on your computer but you can find them in finder
ok lets try:
cd [space] and then drag a folder from finder into the terminal window
e.g dragging from my sdcard makes a line K-5 is the card DCIM where the photo's go and 104_2603 is the folder i'm interested in
cd /Volumes/K-5/DCIM/104_2603 [press return]
next try
ls [press return]
my folder has
_IGP3521.DNG _IGP3527.DNG _IGP3533.DNG _IGP3539.DNG _IGP3545.DNG _IGP3551.DNG _IGP3557.DNG _IGP3563.DNG
_IGP3522.DNG _IGP3528.DNG _IGP3534.DNG _IGP3540.DNG _IGP3546.DNG _IGP3552.DNG _IGP3558.DNG _IGP3564.DNG
_IGP3523.DNG _IGP3529.DNG _IGP3535.DNG _IGP3541.DNG _IGP3547.DNG _IGP3553.DNG _IGP3559.DNG _IGP3565.DNG
_IGP3524.DNG _IGP3530.DNG _IGP3536.DNG _IGP3542.DNG _IGP3548.DNG _IGP3554.DNG _IGP3560.DNG _IGP3566.DNG
_IGP3525.DNG _IGP3531.DNG _IGP3537.DNG _IGP3543.DNG _IGP3549.DNG _IGP3555.DNG _IGP3561.DNG
_IGP3526.DNG _IGP3532.DNG _IGP3538.DNG _IGP3544.DNG _IGP3550.DNG _IGP3556.DNG _IGP3562.DNG
if I type
exiftool -s _IGP3521.DNG [press return]
I get a huge amount whizzing past the screen
starting
ExifToolVersion : 10.40
FileName : _IGP3521.DNG
Directory : .
FileSize : 19 MB
FileModifyDate : 2017:03:26 13:57:56+01:00
FileAccessDate : 2017:03:25 23:00:00+00:00
FileInodeChangeDate : 2017:03:26 13:57:56+01:00
FilePermissions : rwxrwxrwx
FileType : DNG
FileTypeExtension : dng
MIMEType : image/x-adobe-dng
ExifByteOrder : Big-endian (Motorola, MM)
Make : PENTAX
Model : PENTAX K-5
Orientation : Horizontal (normal)
Software : K-5 Ver 1.16
.................................
Aperture : 4.0
CFAPattern : [Blue,Green][Green,Red]
ImageSize : 4992x3284
LensID : Samsung/Schneider D-XENON 18-55mm F3.5-5.6
Megapixels : 16.4
PreviewImage : (Binary data 38560 bytes, use -b option to extract)
ScaleFactor35efl : 1.5
ShutterSpeed : 1/2000
ThumbnailTIFF : (Binary data 57816 bytes, use -b option to extract)
CircleOfConfusion : 0.020 mm
FOV : 46.4 deg
FocalLength35efl : 28.0 mm (35 mm equivalent: 42.0 mm)
HyperfocalDistance : 9.78 m
LightValue : 15.0
Finishing with this, there may be different things in your file.
To read just one value we pass exiftool the name of the tag we are interested in.
for example FOV to do this we type
exiftool -s -FOV _IGP3521.DNG [press return]
now this returns one line
FOV : 46.4 deg
We can read more than 1 tag at once
exiftool -s -FOV -LightValue _IGP3521.DNG [press return]
FOV : 46.4 deg
LightValue : 15.0
Ok so thats how you read a tag oh better talk about -s this is the name of the tag as exiftool wants to see it.
exiftool -FOV -LightValue _IGP3521.DNG [press return]
Field Of View : 46.4 deg
thats been expanded to be more human friendly but you need the other version to talk to exiftool
To write a tag is similar but you need to pass the new value in " " quotes
so
exiftool -s -FOV="46.2 deg" _IGP3521.DNG [press return]
Warning: Sorry, FOV is not writable
Nothing to do.
So thats a tag you are not allowed to rewrite but you get the idea.
exiftool -all= -tagsfromfile donor.cr2 -exif:all mypic.cr2
rewrires everything but it has to be a donor from exactly the same model camera or it will scramble the destination file there are a whole bunch of things which need to be decoded exactly as the camera recorded them if these chunks are in different places bad things happen.
However if you have a friend with the same camera model as you and a supported lens you can do this.
Dx0 reads some of the exif of the file to figure out which lens you used.
exiftool -LensModel=”EF15mm f/2.8 Fisheye” _IGP3521.cr2
exiftool -LensType=”Canon EF 15mm f/2.8 Fisheye” _IGP3521.cr2
exiftool -LensInfo= _IGP3521.cr2
exiftool -LensSerialNumber= _IGP3521.cr2
exiftool -FocalLength=”15.0 mm” -MinFocalLength=”15 mm” _IGP3521.cr2
exiftool -MaxFocalLength=”15 mm” _IGP3521.cr2
Thats the command line version of the canon fisheye lens hack the second to last line changed 2 tags together
I don't know if all of this is actually needed. In fact there probably isn't LensInfo or LensSerialNumber it might create blank tags that dx0 want I guess. There is no value being set for them in the function.
For Pentax its simple
exiftool -LensType="Sigma 24-70mm F2.8 IF EX DG HSM" _IGP3521.dng
dx0 only look at one tag the lens type if its a match with a lens they support they will process the raw file with that module.
I hope that helps.