|
[HepData-svn] r1632 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pagesblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu May 30 11:43:11 BST 2013
Author: whalley Date: Thu May 30 11:43:11 2013 New Revision: 1632 Log: apparently JPEG is not recognised on h8 Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ShapesPlot.java Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ShapesPlot.java ============================================================================== --- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ShapesPlot.java Tue May 28 10:16:07 2013 (r1631) +++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ShapesPlot.java Thu May 30 11:43:11 2013 (r1632) @@ -380,7 +380,7 @@ public InputStream getStream() throws IOException { BufferedImage image = chart.createBufferedImage(width, height); ByteArrayOutputStream byteArray = new ByteArrayOutputStream() ; - ChartUtilities.writeBufferedImageAsJPEG(byteArray, image) ; + ChartUtilities.writeBufferedImageAsPNG(byteArray, image) ; return new ByteArrayInputStream(byteArray.toByteArray()); } public void prepareResponse(Response response){}
More information about the HepData-svn mailing list |