ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: feature_request on December 22, 2011, 01:47:09 PM

Title: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: feature_request on December 22, 2011, 01:47:09 PM
I tried the last version of the exif tool (8.73) but it is impossible to edit exif data of Hasselblad .fff-Files. These files are created by the Hasselblad-Phocus software (Hasselblad digital backs CFV-39, CFV-50 and new h-system cameras). Could you be so nice and add this file type to your great piece of software? I uploaded one .fff file for you as you probalby don't have files in this format. Downloadlink below. (I didn't want to post the file as .fff files are 60 mb in size).

http://tinyurl.com/6sst79t

Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: BogdanH on December 22, 2011, 04:06:38 PM
Hi,

While waiting for response from Phil... Being curious, I have downloaded your file and as it seems, ExifTool v8.73 can read/modify this file without problem.

Bogdan
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: Phil Harvey on December 23, 2011, 07:12:15 AM
Thanks for the sample.

This file is basically a TIFF structure, however there are a number of peculiarities.

As Bogdan states, you may already use ExifTool to edit this file.  Please try this on a copy of the image and let me know if your software has any problems with the image after editing with ExifTool.

Here is a list of the peculiarities I observed:

1) The maker notes are truncated

To me, it looks as if this was caused by editing with some other (Hasselblad?) software.  Some of the maker note information has definitely already been lost.

2) The IPTC information is duplicated in 3 locations.

I have seen other software that does this, but I don't know why.  Luckily, ExifTool recognizes all 3 locations.

3) The image data pointers for IFD0 and IFD1 are the same, and both point to 3MB of data, yet there is 3MB of unreferenced data which follows this block.

This is odd, but not necessarily incorrect.

4) There are remnants of IFD0 in unused data at the start of the file, but IFD0 is now towards the end.

This is more evidence that the file was previously edited.

5) The structure of the file is rather unique, and placement of some values is a bit different.

This isn't a problem unless your software expects things to be in a specific location (which no TIFF reader would do, but sometimes badly written 3rd party software can do this).

- Phil
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: feature_request on December 23, 2011, 01:13:44 PM
Dear Phil and Bodan,

thank you for your fast reply. I found your remarks very interesting as I haven't altered the file. I imported the files from the memory card via Phocus (which is the latest version of the Hasselblad software) and made image corrections via Lightroom. But Lightroom is not altering the image anyhow as the preferences are stored in the library file. Therefore I guess it is Hasselblad's own software Phocus which is creating the pecularities.

I used the following test command (What I want to change is the date later on):
exiftool *.* -Model="Hasselblad 503cx"

Next I open Adobe Lightroom but the metadata is still wrong.

Because of your feedback I created a new Lightroom catalogue and made a fresh import of the files and - voilá - the metadata is set properly.

Therefore the Adobe software has a kind of »flaw«.

Workaround (I write this in case other people will stumble across the same problem): You need to select the changed images (right-click) and choose »Metadata-Read Metadata from File«. Next the Metadata is set correctly.

Thank you very much for your help. Even though my greedy landlord raised the rent today I am perfectly in Chrismas mood due to your help - you made my day :-)

Also: You can add .fff files to your list of supported files... test succesfully accomplished.

Have a nice Christmas Holiday!

Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: Phil Harvey on December 23, 2011, 01:40:50 PM
Excellent, thanks for running the test.

I've been fooled myself too by Lightroom behaviour recently on a couple (https://exiftool.org/forum/index.php/topic,3800.0.html) of occasions (https://exiftool.org/forum/index.php/topic,3794.0.html).

I will add official support for the FFF extension in ExifTool 8.74 when it is released.

One thing I'm still curious about though:  What format are the files on the memory card?  My guess is that the maker notes are intact before the Phocus import.  It would be interesting to see one of these files.

- Phil
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: feature_request on December 23, 2011, 01:57:27 PM
I will post a file here in the next few days. Thanks a lot!
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: Phil Harvey on December 23, 2011, 04:45:59 PM
Update:

DO NOT USE EXIFTOOL 8.73 OR EARLIER TO WRITE FFF IMAGES!

It will corrupt the maker notes!

I have taken a closer look at the FFF image you posted, and I was wrong in my initial analysis. (Point number 1 is wrong, the rest of the points are still valid.)  The maker notes aren't as messed up as I originally thought.  While the makernote block doesn't contain the value data as it should, on closer inspection it appears as if all of the values are intact, but stored later in the file (outside the makernotes proper).  However, due to this, ExifTool was interpreting the offsets incorrectly, and reading the wrong values for the makernote tags.

I will fix this when I add support for FFF in version 8.74, but in the mean time, don't edit FFF images with ExifTool.

- Phil

Edit: Did you try opening the image you edited with the Hasselblad software?  If it uses any of the maker note values, it could have had some problems.  I have prepared another sample which I would also like you to test with the Hasselblad software if possible.  You can download it here (https://exiftool.org/~phil/tmp/test.fff).  I think the maker notes should be good in this version, but I would like this tested.
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: Phil Harvey on December 24, 2011, 07:20:59 AM
FYI:  Adobe DNG converter 6.5 also toasts the makernotes of FFF images when converting (it copies only the makernotes proper, and loses all referenced values).  I will download 6.6 and try it too when I can.

- Phil

Edit: Same thing with DNG Converter 6.6
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: feature_request on December 25, 2011, 08:01:09 AM
First, I tried the test file you prepared. It works fine with Hasselblad Phocus but it is still the old metadata: What did you change? Maybe you can set the Camera model to »test« or whatever and I can have a look if it shows properly within Phocus.

As for the files on the memory card: I can't access them. Only with Phocus software it is possible to retrieve the files. I will try to get access to the files via a PC but this may take some days (as I have only a Mac here). As soon as I have a result I will post the file here again. Best wishes
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: Phil Harvey on December 25, 2011, 06:39:06 PM
With the test file I changed the EXIF Artist to "test".  I wouldn't suggest changing the Make or Model because this is important information that may easily break things for readers if this is changed.

My main concern was that the image displays properly.  Often white balance information is stored in the maker notes of RAW images, and if the maker notes are messed up it can effect the colours.  And it sounds like this was not a problem.  I'm not worried if the Phocus software doesn't display the EXIF Artist information.

I am surprised that the Mac can't read the images because it should be able to read anything that a PC can (memory cards generally use a FAT32 format, which is actually based on the old DOS disk format, but Macs can read this).  I'm in no hurry, but I am interested to have an original sample if you manage to obtain one.  Thanks for trying this.

- Phil
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: feature_request on December 27, 2011, 03:10:13 PM
Phil, below is the link to a file on the memory card: The original files are stored by the cfv-39 as 3fr files. When you import the files via Phocus they are converted to/wrapped as .fff files.

http://bit.ly/ugx2ks
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: feature_request on December 27, 2011, 03:18:53 PM
@test-file provided by you: I opened it in Phocus and the file works without problems. I cannot access the metadata you set via phocus as Phocus does only have the feature to write metadata (but it doesn't show the full range of metadata fields apart from technical metadata such as lens, camera model, etc.)
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: Phil Harvey on December 28, 2011, 06:55:04 AM
Thanks for the sample, and for running the test.

The makernotes are stored in the same format in this sample, however 3FR images have an additional quirk: An incorrect count is stored for SubIFD StripByteCounts, which makes the file look truncated even though it isn't.  (This is why ExifTool is not able to write 3FR images.  All of my 3FR samples have this problem.)

- Phil

Update: ExifTool 8.74 (with the ability to write FFF images) is now available.  Please let me know if you have any problems with this version.

It is interesting to note that if you edit an FFF image with this version before running the Adobe DNG Converter, then the maker notes will be properly transferred to the DNG.  This is because ExifTool restructures the maker notes to make them self-contained when it re-writes an image.  The same was true for Olympus maker notes in ORF images, for which the DNG converter had exactly the same problem.
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: feature_request on December 28, 2011, 04:16:07 PM
Thank you very much!
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: robert_giroux on August 03, 2016, 04:50:52 PM
Quote from: Phil Harvey on December 28, 2011, 06:55:04 AM
The makernotes are stored in the same format in this sample, however 3FR images have an additional quirk: An incorrect count is stored for SubIFD StripByteCounts, which makes the file look truncated even though it isn't.  (This is why ExifTool is not able to write 3FR images.  All of my 3FR samples have this problem.)

- Phil
[/i]

Is this still a problem in 3FR files?  Any chance of being able to write to them anytime soon?
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: Phil Harvey on August 03, 2016, 05:24:28 PM
I don't know if recent Hasselblad models have solved this problem.  What model are you talking about?  It could be useful if you send me a sample FFF file (philharvey66 at gmail.com)

- Phil
Title: Re: Please add exiftool functionality for Hasselblad .FFF and .3FR (Rawfiles)
Post by: MrMacvos on November 28, 2016, 06:14:09 PM
Hi,

I tested today writing to a .3rf Hasselblad photo and got the message 'not supported', which I also see in your 'Supported File Types'-table.
Is it possible to add W(rite) functionality to ExifTool for these types of RAW photos?

- -
Thanks,
Marc Vos
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: Phil Harvey on November 29, 2016, 12:23:36 AM
Hi Marc,

I'll look into this when I get a chance.

- Phil
Title: Re: Please add exiftool functionality for Hasselblad .FFF (Rawfiles)
Post by: Phil Harvey on December 09, 2020, 09:55:08 AM
Quote from: robert_giroux on August 03, 2016, 04:50:52 PM
Any chance of being able to write to them anytime soon?

Apparently not :P