commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SANSELAN-18) GIF Parser facilities return null values for xmp
Date Tue, 20 Dec 2011 10:55:30 GMT

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

Emmanuel Bourg updated SANSELAN-18:
-----------------------------------

          Description: 
When attempting to use both core Sanselan methods and GIFParser methods, attempts to retrieve
XMP is resulting in null values. Example code below:

{code:java}
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);
{code}

  was:
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);

    Affects Version/s: 0.97
        Fix Version/s: 1.0
              Summary: GIF Parser facilities return null values for xmp  (was: Sanselan 0.97
- GIF Parser facilities return null values for xmp)
    
> 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
>    Affects Versions: 0.97
>         Environment: Windows XP, JDK 1.5
>            Reporter: Kelly Boettcher
>             Fix For: 1.0
>
>         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:
> {code:java}
> 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);
> {code}

--
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