Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-10 Thread Damjan Jovanovic
There's also http://xmlgraphics.apache.org/commons/ which does TIFF and PNG parsing among other things. I'll have to investigate all of those after the 1.0 release. Regards Damjan On Tue, Jul 10, 2012 at 10:55 AM, Ray Gauss II wrote: > In case you're not aware, much has been done around EXIF, I

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-10 Thread Ray Gauss II
In case you're not aware, much has been done around EXIF, IPTC, and XMP in Apache Tika which uses the Drew Noakes library [1] for some of its work and there's a parser which wraps ExifTool [2]. Perhaps there's some opportunity to combine efforts? Regards, Ray [1] http://www.drewnoakes.com/cod

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-08 Thread Farrukh Najmi
There are two specs: 1. IPTC Standard Photo Metadata 2008 IPTC Core Specification Version 1.1 IPTC Extension Specification Version 1.0 Document Revision 2 (IPTC-PhotoMetadata-2008 spec) 2. IPTC -

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-08 Thread Damjan Jovanovic
You ask "TODO: What to do about properties not seen in IPTC-PhotoMetadata-2008 (e.g. "Record Version"))" Look at http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/IPTC.html Scroll down to "IPTC ApplicationRecord Tags" Those names seem to resemble what is in http://www.iptc.org/std/IIM/4.1/spec

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-07 Thread Farrukh Najmi
Oops. Here is the correct file this time. On 07/07/2012 01:39 AM, Damjan Jovanovic wrote: Hi Farrukh Your patch is just an empty file. Regards Damjan On Fri, Jul 6, 2012 at 9:23 PM, Farrukh Najmi wrote: Hi Damjan, Attached is the patch for implementing the proposed change outlined in bull

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-06 Thread Damjan Jovanovic
Hi Farrukh Your patch is just an empty file. Regards Damjan On Fri, Jul 6, 2012 at 9:23 PM, Farrukh Najmi wrote: > Hi Damjan, > > Attached is the patch for implementing the proposed change outlined in > bullets below. > Please review and then commit if satisfied or discuss further. Thanks. > >

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-06 Thread Farrukh Najmi
Hi Damjan, Attached is the patch for implementing the proposed change outlined in bullets below. Please review and then commit if satisfied or discuss further. Thanks. On 07/06/2012 02:29 PM, Farrukh Najmi wrote: An example of a metadata property that has no IIM mapping defined is Name: Sce

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-06 Thread Farrukh Najmi
An example of a metadata property that has no IIM mapping defined is Name: Scene Code, XMP property id: Scene (page 15 of 55 in spec) On 07/06/2012 02:25 PM, Farrukh Najmi wrote: Hi Damjan, Thanks for the +1. As I started on this patch I made some observations in the IPTC-PhotoMetadata-200

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-06 Thread Farrukh Najmi
Hi Damjan, Thanks for the +1. As I started on this patch I made some observations in the IPTC-PhotoMetadata-2008.pdfspec: * Not all metadata properties have an IIM mapping defined. For these we will have to invent a type code. I propose we assign codes starting at 1 arbitrarily in s

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-05 Thread Damjan Jovanovic
Hi Farrukh +1 Thank you Damjan On Thu, Jul 5, 2012 at 3:34 PM, Farrukh Najmi wrote: > Hi Damjan, > > Just looked here: > > http://www.iptc.org/site/Photo_Metadata/IIM/ > > This suggests that IIM is older and the IPTC standard is the IPTC Core + > Extensions spec >

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-05 Thread Farrukh Najmi
Hi Damjan, Just looked here: http://www.iptc.org/site/Photo_Metadata/IIM/ This suggests that IIM is older and the IPTC standard is the IPTC Core + Extensions spec . So my proposal is still valid that we use

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-05 Thread Farrukh Najmi
The change I proposed for IPTC is contingent upon identifying what IPTC spec we are using. I am surprised that the IPTC IIM spec which is more recent makes no reference to the IPTC Core spec. I think we need to determine the correct spec before looking at my proposed change for IPTC support.

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-05 Thread Damjan Jovanovic
I'll have a look later and let you know. On Thu, Jul 5, 2012 at 2:52 PM, Farrukh Najmi wrote: > > A similar change needs to be made IMHO to > org.apache.commons.imaging.formats.jpeg.iptc.IptcTypes.java > > so that the enum string value is XML Property Id value instead of the IIM > mapping value.

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-05 Thread Damjan Jovanovic
Hi Farrukh Pleasure :). I am not sure about the API we should be using, and want to investigate what other image frameworks do first. Regards Damjan On Thu, Jul 5, 2012 at 12:56 PM, Farrukh Najmi wrote: > > Hi Damjan, > > Confirming that your recent fix for supporting Exif FieldName looks goo

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-05 Thread Damjan Jovanovic
I have no idea. I never wrote any of the IPTC code. On Thu, Jul 5, 2012 at 3:10 PM, Farrukh Najmi wrote: > BTW, I had thus far been assuming the IPTC spec to use was: > > IPTC Standard Photo Metadata 2008 IPTC Core Specification Version 1.1 > IPTC Extension Specification Version 1.0 > Document Re

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-05 Thread Farrukh Najmi
BTW, I had thus far been assuming the IPTC spec to use was: IPTC Standard Photo Metadata 2008 IPTC Core Specification Version 1.1 IPTC Extension Specification Version 1.0 Document Revision 2 But then I was l

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-05 Thread Farrukh Najmi
A similar change needs to be made IMHO to org.apache.commons.imaging.formats.jpeg.iptc.IptcTypes.java so that the enum string value is XML Property Id value instead of the IIM mapping value. As an example: COUNTRY_PRIMARY_LOCATION_NAME( 101, "Country/Primary Location Name")

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-05 Thread Farrukh Najmi
Hi Damjan, Confirming that your recent fix for supporting Exif FieldName looks good great. Thank you! When do you think you may be able to commit the changes to support the following metadata format-specific methods so I can provide feedback: Imaging.getExifMetadata() Imaging.getIptcMetada

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-03 Thread Damjan Jovanovic
I just committed new TIFF tag names to SVN, let me know how they work for you. The best time to add the new metadata methods is before the 1.0 release, since changing binary compatibility later will be harder. On Tue, Jul 3, 2012 at 10:16 PM, Farrukh Najmi wrote: > +1 on having the methods: > >

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-03 Thread Farrukh Najmi
+1 on having the methods: Imaging.getExifMetadata() Imaging.getIptcMetadata() Imaging.getXmpMetadata() It is is a good idea so one can access metadata-format-specific metadata in a metadata-format-specific way and handling all special needs of specific metadata formats. These methods should wo

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-03 Thread Damjan Jovanovic
I've also considered the metadata interfaces we use, and I am not sure the current approaches are any good. Most metadata formats are designed in a way specific to that format, eg. some have arbitrary levels of nesting, others have a flat structure, etc. But most are designed to be stored in any i

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-03 Thread Farrukh Najmi
Updated proposed patch with following new changes: * Add getValue() method to nested class IImageMetadataItem. These return the value of the item as an Object allowing for values of various types to be returned. On 07/03/2012 11:01 AM, Farrukh Najmi wrote: Moving this thread to dev list

Re: [IMAGING] Getting EXIF and IPTC metadata using metadata and image format neutral code

2012-07-03 Thread Farrukh Najmi
Moving this thread to dev list as it seems to be more appropriate there Attached is a patch to the IImageMetadata.java that reflects my revised proposal thinking this through in conjunction with the proposed solution in another