On 12/30/2021 6:53 PM, Wayne Shumaker wrote:
At 12/30/2021 04:37 PM, Mike wrote:
A Bridge Too Far Moose writes:
<<But it sure isn't worth it. Just don't screw it up in the first place. Perhaps
<<save a copy, until EXIF surgery is a success?
This EXIF stuff can be very mysterious and seems to have very little cohesive
organization. It was never really worth the time invested but now it is a nut
that must be cracked. The data thus far suggests the Sony maker section fields
may be filled if empty but then not altered by
any exif surgery tools. Curiously the TAP AF adapters and knock offs use that
section to fool the camera that an older Sony lens is attached via a Sony AF
adapter. Thus exif will never be totally correct using those adapters.
I believe you have pointed to a solution. I increasingly used more powerful
surgical instruments and then even tried to enlist a more expert surgeon to
perform the exif surgery but instead should have changed the surgical procedure.
Instead of bypass surgery should have proceeded with a transplant. I believe
that is within my scope of practice. The raw file should be uncorrupted and I
should do a quick conversion to jpg then modify said file with Namethatlens
the Vivitar S1 90-180 profile. Then use whatever editor to fix the aperture used and max
aperture. I can then copy the exif and export to the proper file. Photme was correct to grey out
the "Lens type" and "Lens ID" fields, but that seems like a bizarre
restriction. Jexiftoolgui which is only limited by exiftools
allows for lens profiles too in the Sony makers section but presumptively only
if the fields are empty as it will not change them.
Pass the scalpel, Mike
Here is a scalpel
There is a linux C++ utility called exiv2.
As portable C++, I would guess it can somehow be used under Windoze?
"It provides fast and easy read and write access to the Exif, IPTC and XMP
What we casually call EXIF is just one part of the metadata in an image file. Worse, casual use can mix up the defined,
universal exif and things like Maker Notes. Is there an example with Sony entries where the alpha name is repeated, with
different hex tags?
OK this is not for normal people, but if you have any Linux experience read on.
You can use this on Windows files if you install Debian on WSL (windows system
You can access windows photo files using /mnt/c/ for instance to get the C:\
You can create a file (example: cmd.txt) to set or modify data and run "exiv2 -m
cmd.txt" with modify commands in cmd.txt as show on the sample page.
From within the Debian App terminal windows you can get, build, and install
the utility via:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential cmake python3 zlib1g zlib1g-dev
sudo apt-get install git
git clone https://github.com/Exiv2/exiv2.git
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
sudo cmake --build . --target install
example: I have my photos on D:\photos\...
File name : /mnt/d/photos/tmp/2021-dec-23/7R307305.ARW
File size : 43207168 Bytes
MIME type : image/tiff
Image size : 8000 x 5320
Thumbnail : image/jpeg, 8551 Bytes
Camera make : SONY
Camera model : ILCE-7RM3
Image timestamp : 2021:12:23 11:35:53
File number :
Exposure time : 0.625 s
Aperture : F16
Exposure bias : 0 EV
Flash : No, compulsory
Flash bias : 0 EV
Focal length : 35.0 mm
ISO speed : 1600
Exposure mode : Aperture priority
Metering mode : Multi-segment
Macro mode :
Image quality : Raw
White balance : Auto
Exif comment :
See more info at
They show some examples of how to modify data. And quoting that page:
With the -pt option, the utility prints out all Exif information as interpreted
(translated) values. Alternatively, -pv prints the plain Exif data values. (ie.
prints hex number instead of )
exiv2 -pt /mnt/d/photos/tmp/2021-dec-23/7R307305.ARW
Exif.Image.NewSubfileType Long 1 Thumbnail/Preview
Exif.Image.Compression Short 1 JPEG (old-style)
Exif.Image.ImageDescription Ascii 32
Exif.Image.Make Ascii 5 SONY
Exif.Image.Model Ascii 10 ILCE-7RM3
Exif.Image.Orientation Short 1 top, left
Exif.Image.XResolution Rational 1 350
Exif.Image.YResolution Rational 1 350
Exif.Image.ResolutionUnit Short 1 inch
Exif.Image.Software Ascii 16 ILCE-7RM3 v3.10
Exif.Image.DateTime Ascii 20 2021:12:23 11:35:53
Exif.Image.SubIFDs Long 1 133122
Exif.SubImage1.NewSubfileType Long 1 Primary image
Exif.SubImage1.ImageWidth Short 1 8000
Exif.SubImage1.ImageLength Short 1 5320
Exif.SubImage1.BitsPerSample Short 1 14
Exif.SubImage1.Compression Short 1 Sony ARW Compressed
exiv2 -pv /mnt/d/photos/tmp/2021-dec-23/7R307305.ARW
0x00fe Image NewSubfileType Long 1 1
0x0103 Image Compression Short 1 6
0x010e Image ImageDescription Ascii 32
0x010f Image Make Ascii 5 SONY
0x0110 Image Model Ascii 10 ILCE-7RM3
0x0112 Image Orientation Short 1 1
0x011a Image XResolution Rational 1 350/1
0x011b Image YResolution Rational 1 350/1
0x0128 Image ResolutionUnit Short 1 2
0x0131 Image Software Ascii 16 ILCE-7RM3 v3.10
0x0132 Image DateTime Ascii 20 2021:12:23
0x014a Image SubIFDs Long 1 133122
0x00fe SubImage1 NewSubfileType Long 1 0
0x0100 SubImage1 ImageWidth Short 1 8000
0x0101 SubImage1 ImageLength Short 1 5320
0x0102 SubImage1 BitsPerSample Short 1 14
0x0103 SubImage1 Compression Short 1 32767
0x0106 SubImage1 PhotometricInterpretation Short 1 32803
See the sample page to see how you can modify any of the exif data.
I suggest making a copy of the photo first to work on and test.
You can use nano editor to copy and paste from windows into nano. Copy the
commands such as this from the example on samples page. The right click the
terminal window with nano running to paste them. Then Ctrl-O Ctrl-X to write
add Iptc.Application2.Credit String "mee too! (1)"
add Iptc.Application2.Credit mee too! (2)
set Iptc.Application2.Headline Filename
add Exif.Image.WhitePoint Short 32 12 4 5 6
set Exif.Image.DateTime Ascii "Zwanzig nach fuenf"
set Exif.Image.Artist Ascii nobody
set Exif.Image.Artist "Vincent van Gogh"
set Exif.Photo.UserComment Comment charset=Ascii This is an ASCII Exif
I know, I do this Linux, ahh, stuff all the time for work.
What if the Hokey Pokey *IS* what it's all about?
Themed Olympus Photo Exhibition: http://www.tope.nl/