About modifying the sorting of the output TIFF image data

Started by beiwei, September 05, 2023, 12:50:54 PM

Previous topic - Next topic

beiwei

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.

beiwei

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

StarGeek

This will require Phil's attention but he is away for at least another week.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Phil Harvey

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
...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 ($).