/*
 * ModeShape (http://www.modeshape.org)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 
//------------------------------------------------------------------------------
// N A M E S P A C E S
//------------------------------------------------------------------------------
<jcr='http://www.jcp.org/jcr/1.0'>
<nt='http://www.jcp.org/jcr/nt/1.0'>
<mix='http://www.jcp.org/jcr/mix/1.0'>
<image='http://www.modeshape.org/images/1.0'>

//------------------------------------------------------------------------------
// N O D E T Y P E S
//------------------------------------------------------------------------------

/**
 * Mixin that defines the metadata for an image
 */
[image:metadata] > nt:unstructured, mix:mimeType
  - image:formatName (string) mandatory
    < 'JPEG', 'GIF', 'PNG', 'BMP', 'PCX', 'IFF', 'RAS', 'PBM', 'PGM', 'PPM', 'PSD', 'TIFF'
  - image:width (long)
  - image:height (long)
  - image:bitsPerPixel (long)
  - image:progressive (boolean)
  - image:numberOfImages (long)
  - image:physicalWidthDpi (long)
  - image:physicalHeightDpi (long)
  - image:physicalWidthInches (double)
  - image:physicalHeightInches (double)
  + image:exif (image:exif) = image:exif

[image:exif] > nt:unstructured
 - image:artist (string)
 - image:copyright (string)
 - image:datetime (string)
 - image:description (string)
 - image:make (string)
 - image:model (string)
 - image:unit (string)
 - image:orientation (string)
 - image:software (string)
 - image:resolution_x (double)
 - image:resolution_x(double)
