Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5993479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:40:52+00:00 2026-05-22T23:40:52+00:00

I’m interested in manually injecting IPTC fields into JPG file on bytes level. JPEG

  • 0

I’m interested in manually injecting IPTC fields into JPG file on bytes level. JPEG file has multiple metadata segments with respectable size markers. The segments-containers for IPTC are:

App13 – starts with FF ED XX XX ..

8BIM IPTC text metadata – starts with 38 42 49 4D 04 04 00 00 00 00 XX XX ..

IPTC field starts with 1C 02 50 XX XX .. (0x50 = 80, IPTC field #80).

(XX XX = 2 bytes of length-word describing size of mentioned segment data).

Are there any other size markers in JPEG file & metadata to look out for? Do I have to increase their size when appending metadata segment with custom IPTC fields?

How can I add custom metadata field (for example #225) that will work on all JPEG images that already contain IPTC segment?

Working in C# but it’s a question about operations on bytes so I guess language doesn’t matter.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:40:53+00:00Added an answer on May 22, 2026 at 11:40 pm

    Since nobody replied I’ll explain what I did.

    ad 1.
    The file markers I mentioned above are enough to manipulate IPTC.

    ad 2.
    During manual IPTC manipulation on bytes’ level you may easily damage file if you accidently remove or overwrite existing bytes, especially if they’re markers (headers of some JPEG file part).

    ad 3. One has to find and increase App13 and appropriate 8BIM and IPTC markers with the lenght of new metadata field (content size + 5 bytes for IPTC header). So for example to add new field #09 you have to find 8BIM IPTC segment (38 42 49 4D 04 04 00 00 00 00 XX XX) and increase XX XX bytes with new word size. Then increase the wrapping App13 segment (find last FF ED XX XX segment before 8BIM) size and finally at the end of 8BIM (you know the end thanks to the segment lenght bytes) you just add new IPTC field like 1C 02 09 00 05 – adds metadata field #09 of length 5. The following 5 bytes will be considered a field content = the word you add.

    Yeah it’s a little chaotic but works 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.