Image::...::Fixup(3)

πŸ’– Image::...::Fixup(3) πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation and it's literally all about Image::ExifTool::Fixup β€” no cap, it's the little utility that handles pointer fixups. πŸŽ€


✨ NAME ✨

Image::ExifTool::Fixup β€” it's giving utility to handle pointer fixups πŸ¦‹


✨ SYNOPSIS ✨

ok so here's the vibe, copy-paste ready:

use Image::ExifTool::Fixup;

$fixup = Image::ExifTool::Fixup->new;

# add a new fixup to a pointer at the specified offset in data
$fixup->AddFixup($offset);

# add a new Fixup object to the tree
$fixup->AddFixup($subFixup);

$fixup->{Start} += $shift1;   # shift pointer offsets and values

$fixup->{Shift} += $shift2;   # shift pointer values only

# recursively apply fixups to the specified data
$fixup->ApplyFixups(\$data);

$fixup->Dump();               # dump debugging information

$fixup->IsEmpty();            # return true if no offsets to fix

like, look at those little comments, they're so helpful fr fr πŸ’…


✨ DESCRIPTION ✨

so this module contains the code to keep track of pointers in memory and to shift those pointers whenever that's needed. it's the one ExifTool leans on to maintain the pointers in image file directories β€” you know, the IFD's. πŸ‘‘


✨ NOTES ✨

  • it keeps track of pointers with different byte ordering, and it relies on Image::ExifTool::GetByteOrder() to figure out the current byte ordering when it's adding new pointers to a fixup. iykyk. 🌈
  • it maintains a hierarchical list of fixups so the whole entire hierarchy can be shifted by a simple shift at the base. then the hierarchy gets collapsed down to a linear list when ApplyFixups() is called. the way that works?? iconic. ✨

✨ AUTHOR ✨

Copyright 2003-2026, Phil Harvey (philharvey66 at gmail.com) 🫢

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πŸ’–


✨ SEE ALSO ✨

Image::ExifTool(3pm) πŸ¦‹


and that's the whole thing bestie!! mwah πŸ’…βœ¨ this was perl v5.42.1, dated 2026-03-31 β€” slay, go fix those pointers, ily πŸŽ€πŸ’œ

πŸ“¦ where this page comes from