Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: IPTC fields have length limits #4568

Merged
merged 2 commits into from
Dec 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add URL references for IPTC information
Signed-off-by: Larry Gritz <[email protected]>
lgritz committed Dec 27, 2024
commit 12a92dfe53085d050e81e7fd02e2023744914b12
10 changes: 10 additions & 0 deletions src/doc/stdmetadata.rst
Original file line number Diff line number Diff line change
@@ -1063,6 +1063,16 @@ avoid conflicts with other plugins or standards.
The history of the image or document.


References for more information on IPTC metadata:

* https://www.iptc.org/std/photometadata/specification/IPTC-PhotoMetadata
* https://www.iptc.org/std/photometadata/specification/IPTC-PhotoMetadata#iptc-core-schema-1-5-specifications
This is the one where you can find the length limits
* ExifTool's documentation about IPTC tags (caveat: not a definitive
reference, could be outdated or incorrect):
https://exiftool.org/TagNames/IPTC.html


SMPTE metadata
==============

9 changes: 9 additions & 0 deletions src/libOpenImageIO/iptc.cpp
Original file line number Diff line number Diff line change
@@ -84,6 +84,15 @@ static IIMtag iimtag[] = {
// N.B. All "Date" fields are 8 digit strings: CCYYMMDD
// All "Time" fields are 11 digit strings (what format?)

// IPTC references:
//
// * https://www.iptc.org/std/photometadata/specification/IPTC-PhotoMetadata
// * https://www.iptc.org/std/photometadata/specification/IPTC-PhotoMetadata#iptc-core-schema-1-5-specifications
// This is the one where you can find the length limits
// * ExifTool's documentation about IPTC tags (caveat: not a definitive
// reference, could be outdated or incorrect):
// https://exiftool.org/TagNames/IPTC.html

} // anonymous namespace