> On Oct 11, 2006, at 9:04 AM, Dixon, Tom wrote: > > > Has anyone on the list done any work using Structures for > reading and > > storing image header information of JPEG and TIFF images?, (and > > possibly others) > > REALbasic structures will not work for this... the data is of > variable length and only a few tags are required as part of > the JPEG and TIFF specs.
Hmmmmm... Then how does one read the header info if it doesn't appear at the specified offset set out in the specs? > > > I am primarily interested in reading this information so > that specific > > pertinent data can be restored if the image is resaved using any of > > the existing RB plugins and or modules available. I am particularly > > interested in the ICC profile data, if a profile is > embedded, if the > > image is merely tagged or is missing any profile indication at all. > > If I remember correctly, copying the color profile would be > pretty easy at least in the JPEG file. A JPEG file is broken > into segments, and one of those segments is the profile > although it does not have to be the same segment for every > file. Then you would just identify the color profile segment > and rebuild (write) the JPEG file with the segments you want. This is part of what I had hopped to do but I also need to read the data that indicates whether it is merely a Tag in the ColorSpace EXIF field, (either sRGB (1) or Adobe RGB 1998 (65535) and then embed the appropriate profile. > > > I am a little unsure as to how to begin this and if someone > else has > > already done the work then I would not tackle it at all > ...regardless > > whether I had to pay a license fee for it or not. > > I had worked on a project which would edit JPEG tag > information, but I only got about 20% into the project before > being distracted by something shiny... uh, I mean something > else. I would be happy to help where I can though. Any sage advice, source code etc. would be welcome! Tom _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
