|
 |
|
|
The table showing the fields in the 8BIM block needs to be updated, it's incorrect.
- The Segment size field is actually a 4 byte Long value, not 2 bytes.
- The prior field is not 4 bytes of padding but it is a variable length Pascal string that's padded out to a two byte boundary. A Pascal string has the first byte as the string length, followed by 0-255 single byte characters. Note that the Pascal string itself is NOT null terminated. However in the 8BIM block it may be followed by 0 or 1 byte of null padding. So there may or may not be a null following the string, and that's OK.
|
| Sign In·View Thread·PermaLink | 2.50/5 (2 votes) |
|
|
|
 |
|
|
i try to extract iptc data from AFP news agency photo it failed to get anything can any one help me ibrahim37me@hotmail.com
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
I have not used the code but have developped a LISP program to access and modify these data. Your page is the only page where I have found at last a clear explanation of the 8BIM segements. Thanks very much.
Jacques R
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi..Where can I get information about JPEG header format so I can parse the IPTC data manually? Thanks a lot!!
|
| Sign In·View Thread·PermaLink | 1.13/5 (7 votes) |
|
|
|
 |
|
|
The program works quit well also on new files from PS9 My problem is that its crush when I'm trying to save it back. Any ideas?
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
Hi,
most likely you hit the limitation described in the text: "However this currently only works with files that already contain IPTC information."
The code is old and far from perfect 
Cheers Chris
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hello, When I want create new IPTC header with this class, it does not work.  But if I modify an existing header, it work, I don't understand... How I can create a new IPTC header? Please help me...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Hi.  I'm using the code to extract IPTC of images JPG. I build a COM in MS VC++ 6. I have a problem. The code only extracts IPTC of some images probably of those that already has IPTC. When I load IPTC and I alter some fields, if I don't fill out any all the fields information they are not saved.
Does anybody can me to help? Where can I find a code that can solve my problem?: (
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
The const char Photoshop_1C02[] must equal to "\x1c\x02" and NOT "\x1c\02".
And don't use the 'Save' functionality. It will delete some of the IPCT Headers!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
The author got the 8BIM segment format wrong. Here's the actual format:
BYTE Type[4]; /* Always "8BIM" */ WORD ID; /* Various - we're looking for 0x0404 */ BYTE Name[]; /* Even-length Pascal-format string, 2 bytes or longer */ LONG Size; /* Length of resource data following, in bytes */ BYTE Data[]; /* Resource data, padded to even length */
Note that these are unsigned quantities. Name is always an even number of bytes (including the 1st byte, which is the size.)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
hi all, it is a nice code.but does it support all jpegs? or only his example? coz i tried to read header of my own photo and it didnt work.will i read only the jpeg created and added header with Adobe 3.0? take care, A.Y.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
The code provided is quite old now. The formats (of newer Photoshop versions) changed, and it certainly doesn't capture each and every possible format version out there.
So it should be able to handle mor than the sample photos but will probably not handle all the photos you can imagine.
Cheers Chris
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
Thank u very much for ur reply. Do u have new codes?  How or where can i find a sample code for reading jpeg files and shwing them? i have a project to finish in 1 week and i couldnt do it yet  pls help me? take care, A.Y.
|
| Sign In·View Thread·PermaLink | 2.00/5 (3 votes) |
|
|
|
 |
|
|
Hi.
I'm on a big project where I need to use java to parse a photoshop tiff file an extract embedded clip path information.
I have it "working" but it's really a hacky way to do it and will only handle a single clip path. I really need a good example of an 8BIM rader in java.
ultimately, I need to be able to extract multiple embedded paths based on their names.
Can anyone give me any help at all? I'm starting to feel lost.
Thanks!
Jonathan Doklovic Senior Programmer Limited Brands Technology Services http://www.vicotriassecret.com
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
|
Hi, Please tell me , how can one recognize the IPTC header in a file , if there is a possibility that the IPTC editor application for the file is not known, like in all those files which are saved using Photoshop after saving the IPTC info we cud find Photoshop 3.0 as Photoshop signature. Moreover the delimiter for various field is 8BIM in this case.So if the file containing the IPTC info. has nothing to do with photoshop then how can we extract the IPTC info.
|
| Sign In·View Thread·PermaLink | 2.75/5 (4 votes) |
|
|
|
 |
|
|
Hi,
IPTC (the organisation) defines a standard how to encapsulate their info. Photoshop is compliant to that, in that respect that the IPTC blob inside the 8BIM segement is according to the specs and the whole thing is in the proper JPEG segment.
AFAIK the IPTC spec does not prevent somebody from adding additional info around. So a pure IPTC reader (I have not tried the IPTC sample C code) should be able to read Photoshop generated IPTC info.
The sample application here can be easily modified to handle pure-IPTC images. Just throw out the parsing of the Photoshop specific stuff.
So maybe a valid comparison would be a HTML file that not every browser can parse (=extract all info in it).
Cheers Chris
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
Thanks a lot for ur sanguine attitude that u come back quickly. So this mean that we can safly rely on the occurence of 8BIM /x04 /x04 as the starting point of IPTC blob. Actually we r on the way to develop the piece of code which just extract the IPTC info. from a file (jpeg,tiff or eps).So our interest confined just to fish out the relevent info and we don't need to add more info. Since u scrutinize the IPTC blob & ur r confirming that 8BIM /x04 /x04, identifier is unique then we need not to look for ADOBE or any other application signature in the file being treated.Up untill now what we were doing that first we were looking for "\x FFED Photoshop 3.0" if we get this only then we were looking forward to search 8BIM /x04 /x04.But since there are a lot no. of application other than (Photoshop) like Exifer,Cumulus etc. Our code was not able to extract info if application was not having photoshop identifier. This way the conclusion is that 8BIM /x04 /x04 identifier is unique and we must just look for its first occurence in the file under process.If i am wrong at any point please try to comment.
Thanks and Regards, Priyanka Ahuja Member-Software Development Group Quark System Pvt. Ltd.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
hey
your code is somewhat usefull, cos you cant use it in your own program. i would like to WRITE iptc-tags in an image which comes straight from a digicam. unforutnately your code doesnt provide that feature... any ideas how you would do that?
thank you thomas
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi,
You would have to create the (most likely) missing JPEG segment and all the other information from scratch and insert it into the JPEG stream in the right place.
Cheers Chris
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
yes of course but thats my problem :/ i dont get the insertion point of the 8BIM-header nor do i know the header. seems that it isnt the same header every time... (when i open the files in ultraedit)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
actually then ur program wont work, dunno why. in cumulus you have a function to create the missing jpeg segments. if i copy that segment to my picture (its a copy of the one cumulus has edited) i can write to the jpeg with your tool but cant read it anymore!  anyway no idea how the segment has to look like, some segments are completely different...
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |