commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damjan Jovanovic (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SANSELAN-18) Sanselan 0.97 - GIF Parser facilities return null values for xmp
Date Wed, 07 Dec 2011 03:43:40 GMT

     [ https://issues.apache.org/jira/browse/SANSELAN-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Damjan Jovanovic resolved SANSELAN-18.
--------------------------------------

    Resolution: Invalid

There is definitely no XMP in that file:

$ exiv2 pr -p x -v /tmp/TestGIF.gif 
File 1/1: /tmp/TestGIF.gif
/tmp/TestGIF.gif: No XMP data found in the file

Shotwell, Phatch, Irfanview, others, also failed.

As for writing XMP into a GIF, you should set PARAM_KEY_XMP_XML to the string containing the
XMP in the parameters you pass to Sanselan.writeImage().

Resolving this bug invalid.

                
> Sanselan 0.97 - GIF Parser facilities return null values for xmp
> ----------------------------------------------------------------
>
>                 Key: SANSELAN-18
>                 URL: https://issues.apache.org/jira/browse/SANSELAN-18
>             Project: Commons Sanselan
>          Issue Type: Bug
>         Environment: Windows XP, JDK 1.5
>            Reporter: Kelly Boettcher
>         Attachments: TestGIF.gif
>
>
> When attempting to use both core Sanselan methods and GIFParser methods, attempts to
retrieve XMP is resulting in null values. Example code below:
> File file;
> InputStream is;
> byte[] b;
> file = new File("C:/data/TestGIF.gif");
> is = new FileInputStream(file);
> b = new byte[is.available()];
> is.read(b);
> is.close();
> 		    
> /* Testing the Sanselan getXMP */		    
> String xmp = Sanselan.getXmpXml(file); // returns null
> System.out.println(xmp);
> 		    
> /* Testing the GIF image parser's xmp capabilities */
> GifImageParser parser = new GifImageParser();
> ByteSource bs = new ByteSourceArray(b);
> String existingXMP = parser.getXmpXml(bs, null); // returns null
> System.out.println(existingXMP);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message