Package org.apache.photark

Examples of org.apache.photark.ImageMetadata


                ArrayList<?> items = jpegMetadata.getItems();
                for (int i = 0; i < items.size(); i++) {
                    Object item = items.get(i);
                    if (item instanceof TiffImageMetadata.Item) {
                        TiffImageMetadata.Item tiffItem = (TiffImageMetadata.Item)item;
                        imageAttributes.add(new ImageMetadata(tiffItem.getKeyword(), tiffItem.getText()));
                    }
                }              
            }
        } catch (ImageReadException e) {
            // TODO Auto-generated catch block
View Full Code Here


     * @param tagInfo
     * @throws ImageReadException
     * @throws IOException
     */
    private static void populateImageMetadata(List<ImageMetadata> metadataAttributes, JpegImageMetadata jpegMetadata, TagInfo tagInfo) throws ImageReadException, IOException {
        ImageMetadata metadata = getTagValue(jpegMetadata, tagInfo);
        if(metadata != null) {
            metadataAttributes.add(metadata);
        }
    }
View Full Code Here

     * @return the EXIF information wrapped into a ImageMetadata
     * @throws ImageReadException
     * @throws IOException
     */
    private static ImageMetadata getTagValue(JpegImageMetadata jpegMetadata, TagInfo tagInfo) throws ImageReadException, IOException {
        ImageMetadata imageMetadata = null;
        TiffField field = jpegMetadata.findEXIFValue(tagInfo);
        if (field != null) {
            imageMetadata = new ImageMetadata(tagInfo.name, field.getValueDescription());
        }

        return imageMetadata;
    }
View Full Code Here

TOP

Related Classes of org.apache.photark.ImageMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.