ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: beiwei on September 05, 2023, 12:50:54 PM

Title: About modifying the sorting of the output TIFF image data
Post by: beiwei on September 05, 2023, 12:50:54 PM
When deleting some Tags of TIFF images, I found that the value of StripOffsets was different from the original file. After checking it, I wanted to modify the data order (IFH, IFD, image data) of the output TIFF format. I modified the generateTIFF () function in exif.pm, and the final file is as follows:

At the command line:

perl C:\windows\exiftool.pl -Orientation= blk_tif.tif

The error is as follows:

Global symbol "$dataPT" requires explicit package name (did you forget to declare "my $dataPT"?)  at C:\windows/lib/Image/ExifTool/Exif.pm line 5779.

Compilation failed in require at (eval 1) line 1.

Can't find table Image::ExifTool::Exif::Main

Attempt to reload Image/ExifTool/Exif.pm aborted.

Compilation failed in require at (eval 2) line 1.

Can't find table Image::ExifTool::Exif::Main

Attempt to reload Image/ExifTool/Exif.pm aborted.

Compilation failed in require at C:\windows/lib/Image/ExifTool/PanasonicRaw.pm line 22.

BEGIN failed--compilation aborted at C:\windows/lib/Image/ExifTool/PanasonicRaw.pm line 22.

Compilation failed in require at (eval 3) line 1.

Can't find table Image::ExifTool::PanasonicRaw::Main

Attempt to reload Image/ExifTool/Exif.pm aborted.

Compilation failed in require at C:\windows/lib/Image/ExifTool/XMP.pm line 49.

BEGIN failed--compilation aborted at C:\windows/lib/Image/ExifTool/XMP.pm line 49.

Compilation failed in require at (eval 4) line 1.

Can't find table Image::ExifTool::XMP::pmi

Attempt to reload Image/ExifTool/XMP.pm aborted.

Compilation failed in require at (eval 5) line 1.

Can't find table Image::ExifTool::XMP::tiff

Warning: Sorry, Orientation is not writable

Nothing to do.

Why is this, how should I modify, thanks for the reply.
Title: Re: About modifying the sorting of the output TIFF image data
Post by: beiwei on September 05, 2023, 01:04:39 PM
I would like to add that my operating system is win10 and the version of exiftool is 12.65. I look forward to your reply
Title: Re: About modifying the sorting of the output TIFF image data
Post by: StarGeek on September 07, 2023, 09:41:32 PM
This will require Phil's attention but he is away for at least another week.
Title: Re: About modifying the sorting of the output TIFF image data
Post by: Phil Harvey on September 19, 2023, 08:40:19 AM
The GenerateTIFF() function is used only to generate the ThumbnailTIFF information when extracting.  Changing the order of the IFDs/data when writing a TIFF image would be quite complicated.

- Phil