rude04 / metadata-extractor

Automatically exported from code.google.com/p/metadata-extractor
0 stars 0 forks source link

Unable to read IPTC saved by Adobe Bridge #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, 
I am working with a CMS that uses ImageMagick to extract IPTC 
information out of the images and stores them into a database. I now 
have run into several images that have the IPTC information encoded 
"at the end" of the file instead of the beginning and because of this 
IM seems not to be able to read the information. We suspect that the 
Adobe Bridge writes the information that way. 
So I am looking now for another way to get this information into our 
system and stumbled across the metadata-extractor. Sadly I have no 
Java skills other than the Javascript engine that we have in our 
system and I translated a code sample I found for the 2.4 and let it 
run to show me all the directories and their tags for a particular 
image: 
    var tifFile = new File("/ 
773503_1413255_2808_1872_dfb_allstars_duerr_feil_159.tif"); 
    var metadata = TiffMetadataReader.readMetadata(tifFile); 
    var directory = metadata.getDirectoryIterator(); 
    while (directory.hasNext()) { 
      var tag = directory.next(); 
            var tags = tag.getTagIterator(); 
            while (tags.hasNext()) { 
                var zeile = tags.next().toString(); 
                print(zeile); 
            } 
    } 
For a "normal" file this works and shows me e.g. all the exif and the 
iptc tags. For a "problem" file it only showed the exif part and then 
stops. 
I tried the 2.5 version but there seem to have been some changes and I 
was not able to make a script run under JavaScript. 
So what my question is, if I could make a sample file available for 
some volunteer from this list to throw it at a working implementation 
and let me know, if the iptc directory is accessible to the metadata- 
extractor? That would really help and would earn the tester a beer if 
you ever are coming to Hamburg. And depending on the result I then dig 
deeper into the API or have to find another way. 
Thanks and best regards 
Uli 

Original issue reported on code.google.com by Haag3...@gmail.com on 30 Jan 2012 at 2:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Uli,

Apologies for the delay in getting back to you.  Yes, if you would be able to 
attach a sample image to this issue, then I can look further at what you're 
talking about.  Please make sure it's an image that you're able to release to 
the public.

Drew.

Original comment by drewnoakes on 20 May 2012 at 6:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Uli,

I haven't been able to reproduce this issue.  Unfortunately, without a sample 
image it's hard to see how to fix this for you and others.  I know it's been a 
while since you entered this issue, but if you have a sample image it'd be 
really helpful.

Original comment by drewnoakes on 24 May 2012 at 11:13

GoogleCodeExporter commented 9 years ago

Original comment by drewnoakes on 16 Oct 2012 at 7:57

GoogleCodeExporter commented 9 years ago
I think I have run into the same issue, where the iptc data doesn't appear in 
metadata.getDirectories(). There are a lot of unknown exif tags with quite a 
bit of data in them so that may be related? (camera type is Phase One P45+). 
I've attached a sample file.

Original comment by michaelr...@gmail.com on 15 May 2013 at 5:47

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry.. forgot to include that I am using version 2.6.4

Original comment by michaelr...@gmail.com on 15 May 2013 at 5:49

GoogleCodeExporter commented 9 years ago
Ah.. after looking at the source I see the reason -- TiffMetadataReader only 
uses ExifReader. This issue should be renamed to something like "IPTC data not 
extracted from tiff files"

Original comment by michaelr...@gmail.com on 17 May 2013 at 4:02

GoogleCodeExporter commented 9 years ago
This issue has been migrated along with the project to GitHub:

https://github.com/drewnoakes/metadata-extractor/issues/19

Original comment by drewnoakes on 19 Nov 2014 at 6:24

GoogleCodeExporter commented 9 years ago
This image was closed on GitHub.

Original comment by drewnoakes on 1 Feb 2015 at 9:07