Skip to content

Commit

Permalink
Removing code writing out temp image for visual inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
aaime committed Apr 20, 2014
1 parent 09e99c0 commit 8fee70e
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
import java.awt.image.RenderedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;

import javax.imageio.ImageIO;
import javax.media.jai.ImageLayout;
Expand Down Expand Up @@ -63,10 +61,6 @@ public void testGrayAlpha8Bit() throws Exception {
float quality = 5f/9 - 1;
new PNGWriter().writePNG(grayAlpha, bos, -quality, FilterType.FILTER_NONE);

FileOutputStream fos = new FileOutputStream(new File("/tmp/sample.png"));
fos.write(bos.toByteArray());
fos.close();

BufferedImage read = ImageIO.read(new ByteArrayInputStream(bos.toByteArray()));
BufferedImage gaBuffered = PlanarImage.wrapRenderedImage(grayAlpha).getAsBufferedImage();
ImageAssert.assertImagesEqual(gaBuffered, read);
Expand Down

0 comments on commit 8fee70e

Please sign in to comment.