-
Hi everyone! @WildEyeConservation @Untouchable17 @dnsamw @sylikc
currently, I can only add predefine tags for each standard by using this code This first code working
but the below code not working.
is there anything wrong with my code or what?, please write your precious answer |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
The reason your second code snippet is not working is likely due to the
absence of a corresponding IPTC tag named "Subject" in the image metadata.
In the first code snippet, you are using the -XMP:Subject=hi argument,
which sets the value of the "Subject" tag in the XMP metadata to "hi". This
works because the XMP metadata standard includes a "Subject" tag.
However, in the second code snippet, you are using the -IPTC:Subject=hi
argument, assuming that there is an IPTC tag called "Subject." If this tag
doesn't exist in the image's IPTC metadata, the command will fail to set
the value.
To add IPTC tags, you need to use the correct tag names recognized by the
IPTC standard. The tag names for IPTC metadata may differ from XMP or EXIF.
You should consult the IPTC standard documentation or a reference guide to
find the appropriate IPTC tag names for the desired information you want to
add.
Once you identify the correct IPTC tag name, you can modify your code
accordingly. Here's an example using a hypothetical IPTC tag "Caption":
from exiftool import ExifTool
with ExifTool() as et:
print(et.execute(*["-IPTC:Caption=SecDet Samurai"] + ["skyblue.png"]))
Make sure to replace "Caption" with the actual IPTC tag name you wish to
set, according to the IPTC standard.
Remember, it's important to use the appropriate tag names for each metadata
standard to ensure compatibility and adherence to the specifications of
each standard.
I hope this clarifies the issue.
вт, 20 июн. 2023 г. в 15:21, Farid Ullah ***@***.***>:
… Hi everyone! @WildEyeConservation <https://github.com/WildEyeConservation>
@Untouchable17 <https://github.com/Untouchable17> @dnsamw
<https://github.com/dnsamw> @sylikc <https://github.com/sylikc>
Hope you all doing well. I am stuck when adding a new tag that is not
predefined for any metadata standard like
1. if I copy XMP tags and make them IPTC tags or exif tags?
2. or if I copy IPTC tags and make them XMP tags or EXIF tags?
3. or If I copy Exif tags and make them XMP tags to IPTC Tags?
currently, I can only add predefine tags for each standard by using this
code
This first code working
from exiftool import ExifTool
with ExifTool() as et:
print(et.execute(*["-XMP:Subject=hi"] + ["skyblue.png"]))
but the below code not working.
from exiftool import ExifTool
with ExifTool() as et:
print(et.execute(*["-IPTC:Subject=hi"] + ["skyblue.png"]))
is there anything wrong with my code or what?, please write your precious
answer
Thanks
—
Reply to this email directly, view it on GitHub
<#71>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS6WTVTIWJCMJLZDIN5URP3XMGIWJANCNFSM6AAAAAAZNGEQ7A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, @Untouchable17 Thanks for your answer. correct me if i am wrong |
Beta Was this translation helpful? Give feedback.
-
hello everyone @WildEyeConservation @Untouchable17 @dnsamw @sylikc Can we add tags that are not predefine in each metadata standard by using ExifTool??? |
Beta Was this translation helpful? Give feedback.
there's no "easy" way... see my reply below. And for XMP, IPTC, and EXIF, you really shouldn't insert tags which are not part of the specifications... because no other application would read these tags anyways