Re: How does one get the title out of a JPEG using ImageIO?
John B. Matthews wrote:
Here's the standard metadata:
<http://java.sun.com/javase/6/docs/api/javax/imageio/metadata/doc-files/s
tandard_metadata.html>
And, for example, the JPEG metatdata:
<http://java.sun.com/javase/6/docs/api/javax/imageio/metadata/doc-files/j
peg_metadata.html>
John those links are broken for me. I think a newline got inserted in
the middle of each one. Here's a link for the OP that points I think to
the parent of those pages, scroll down to find links to the various doc
files. The links are in the last paragraph.
<http://java.sun.com/javase/6/docs/api/javax/imageio/package-summary.html>
Also, for the OP, I tried that link I posted earlier. I tested it with
an image I had laying around on disk that I knew had a "comment"
attribute. The Javax stuff found that comment just fine, so it's
working that far at least.
Here's the shorter one. The comment is "Created with GIMP" in the last
entry.
Format name: javax_imageio_1.0
<javax_imageio_1.0>
<Chroma>
<ColorSpaceType name="YCbCr"/>
<NumChannels value="3"/>
</Chroma>
<Compression>
<CompressionTypeName value="JPEG"/>
<Lossless value="false"/>
<NumProgressiveScans value="1"/>
</Compression>
<Dimension>
<PixelAspectRatio value="1.0"/>
<ImageOrientation value="normal"/>
<HorizontalPixelSize value="0.35277778"/>
<VerticalPixelSize value="0.35277778"/>
</Dimension>
<Text>
<TextEntry keyword="comment" value="Created with GIMP"/>
</Text>
</javax_imageio_1.0>