| 72 | == Impacted utilities == |
| 73 | |
| 74 | The gdalinfo utility is extented to accept : |
| 75 | * a "-listmdd" option that will print the metadata domains available, |
| 76 | |
| 77 | {{{ |
| 78 | $ gdalinfo ../autotest/gdrivers/data/byte_with_xmp.jpg -listmdd |
| 79 | |
| 80 | Driver: JPEG/JPEG JFIF |
| 81 | Files: ../autotest/gdrivers/data/byte_with_xmp.jpg |
| 82 | Size is 20, 20 |
| 83 | Coordinate System is `' |
| 84 | Metadata domains: |
| 85 | xml:XMP |
| 86 | Corner Coordinates: |
| 87 | Upper Left ( 0.0, 0.0) |
| 88 | Lower Left ( 0.0, 20.0) |
| 89 | Upper Right ( 20.0, 0.0) |
| 90 | Lower Right ( 20.0, 20.0) |
| 91 | Center ( 10.0, 10.0) |
| 92 | Band 1 Block=20x1 Type=Byte, ColorInterp=Gray |
| 93 | Metadata domains: |
| 94 | IMAGE_STRUCTURE |
| 95 | Image Structure Metadata: |
| 96 | COMPRESSION=JPEG |
| 97 | }}} |
| 98 | |
| 99 | * and "-mdd all" will display the content of all metadata domains. |
| 100 | |
| 101 | |
| 102 | {{{ |
| 103 | $ gdalinfo ../autotest/gdrivers/data/byte_with_xmp.jpg -mdd all |
| 104 | |
| 105 | Driver: JPEG/JPEG JFIF |
| 106 | Files: ../autotest/gdrivers/data/byte_with_xmp.jpg |
| 107 | Size is 20, 20 |
| 108 | Coordinate System is `' |
| 109 | Metadata (xml:XMP): |
| 110 | <?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?> |
| 111 | <x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 7.89'> |
| 112 | <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'> |
| 113 | |
| 114 | <rdf:Description rdf:about='' |
| 115 | xmlns:dc='http://purl.org/dc/elements/1.1/'> |
| 116 | <dc:description> |
| 117 | <rdf:Alt> |
| 118 | <rdf:li xml:lang='x-default'>Description</rdf:li> |
| 119 | </rdf:Alt> |
| 120 | </dc:description> |
| 121 | <dc:subject> |
| 122 | <rdf:Bag> |
| 123 | <rdf:li>XMP</rdf:li> |
| 124 | <rdf:li>Test</rdf:li> |
| 125 | </rdf:Bag> |
| 126 | </dc:subject> |
| 127 | <dc:title> |
| 128 | </rdf:Alt> |
| 129 | </dc:title> |
| 130 | </rdf:Description> |
| 131 | |
| 132 | <rdf:Description rdf:about='' |
| 133 | xmlns:tiff='http://ns.adobe.com/tiff/1.0/'> |
| 134 | <tiff:BitsPerSample> |
| 135 | <rdf:Seq> |
| 136 | <rdf:li>8</rdf:li> |
| 137 | </rdf:Seq> |
| 138 | </tiff:BitsPerSample> |
| 139 | <tiff:Compression>1</tiff:Compression> |
| 140 | <tiff:ImageLength>20</tiff:ImageLength> |
| 141 | <tiff:ImageWidth>20</tiff:ImageWidth> |
| 142 | <tiff:PhotometricInterpretation>1</tiff:PhotometricInterpretation> |
| 143 | <tiff:PlanarConfiguration>1</tiff:PlanarConfiguration> |
| 144 | <tiff:SamplesPerPixel>1</tiff:SamplesPerPixel> |
| 145 | </rdf:Description> |
| 146 | </rdf:RDF> |
| 147 | </x:xmpmeta> |
| 148 | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | <?xpacket end='w'?> |
| 173 | Corner Coordinates: |
| 174 | Upper Left ( 0.0, 0.0) |
| 175 | Lower Left ( 0.0, 20.0) |
| 176 | Upper Right ( 20.0, 0.0) |
| 177 | Lower Right ( 20.0, 20.0) |
| 178 | Center ( 10.0, 10.0) |
| 179 | Band 1 Block=20x1 Type=Byte, ColorInterp=Gray |
| 180 | Image Structure Metadata: |
| 181 | COMPRESSION=JPEG |
| 182 | |
| 183 | }}} |