Main Menu

bigtiff metadata

Started by eseidler, November 20, 2012, 05:19:29 PM

Previous topic - Next topic

eseidler

Hi. Last year I developed an application that calls exiftool to retrieve metadata from tiff and geotiff files. Now I'm interested in reading the metadata from bigtiff files. However, when I try that on some bigtiffs that I have, I get the following output (filename and directory lines removed):
  ExifToolVersion = 8.62
  FileSize = 8038634372
  FileModifyDate = 1352837893
  FilePermissions = 33206
  FileType = BTF
  MIMEType = image/x-tiff-big
  | Warning = Huge offsets not supported (LargeFileSupport not set)


So is there a way to set that LargeFileSupport flag? I found the following line in Image/Exiftool.pm
      #   LargeFileSupport => undef,  # flag indicating support of 64-bit file offsets

Can I change that line to the following and somehow rebuild the application for use on bigtiffs? Am I on the right track or way off?
      LargeFileSupport => 1,  # flag indicating support of 64-bit file offsets

Many thanks.
- Eric S.

Phil Harvey

Hi Eric,

This may be done in the config file:

%Image::ExifTool::UserDefined::Options = (
    LargeFileSupport => 1,
);
1; # end


Let me know how this goes.  I haven't tested the BigTIFF module with long offsets.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

eseidler

Phil,

After setting that option in the config file, the application seems to be pulling all of the metadata correctly on the bigtiff file that I've got. I'll report back if I discover that it's not retrieving all the data.

Thanks for the quick response!

- Eric

Phil Harvey

Great, thanks for letting me know.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Strontium

#4
Quote from: Phil Harvey on November 20, 2012, 07:42:21 PM
%Image::ExifTool::UserDefined::Options = (
    LargeFileSupport => 1,
);
1; # end

I have the above code in .ExifTool_config in my home directory (Ubuntu 18.04), but i can't alter the exif information of a bigtiff file. Reading does work.


Error: ExifTool does not support writing of BigTIFF images - beach.tif


Either i did not setup the config file correctly or it simply does not work.

What is to do?

Here is the link to the bigtiff file:

https://mega.nz/#!tAlBBaBL!j3jRjFFlVQYi7CsAjNsCovt2sC6cAxJqrPFTWj9qLDc

which is a tiff file 88140 x 5397 pixels, 645.9 MB

Stargeek Edit: Fixed quoting

StarGeek

I can confirm this.  Tested using -api largefilesupport=1 and got the same error.

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

dzeek

Quote from: Phil Harvey on June 30, 2019, 09:51:53 AM
ExifTool currently has only read support for BigTIFF files.

- Phil

Hi Phil. Is this still true? I have some BigTIFF files from PTGui and would like to use ExifTool to add GPS data. I have been doing this with JPG files but now need to use TIF files. Thank you.

Phil Harvey

You can check the support level for all files here.  BigTIFF is still read-only.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).