From d0da730945cb9001043599e3a8ccef2761dfc68a Mon Sep 17 00:00:00 2001 From: Shradheya Thakre Date: Thu, 16 Nov 2017 18:33:52 +0800 Subject: [PATCH] Bug Fix --- .../java/seedu/address/storage/ImageDisplayPictureStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/storage/ImageDisplayPictureStorage.java b/src/main/java/seedu/address/storage/ImageDisplayPictureStorage.java index 1dbaf34fd466..780b19e39b0e 100644 --- a/src/main/java/seedu/address/storage/ImageDisplayPictureStorage.java +++ b/src/main/java/seedu/address/storage/ImageDisplayPictureStorage.java @@ -67,7 +67,7 @@ public void saveImageInDirectory(BufferedImage image, String uniquePath) throws try { logger.info("image is being stored in directory "); fileToWrite = new File(DIRECTORY_SAVING_PATH + uniquePath + IMAGE_EXTENSION); - ImageIO.write(image, IMAGE_EXTENSION, fileToWrite); + ImageIO.write(image, "png", fileToWrite); } catch (IOException ioe) { logger.info("Image not saved properly"); throw new ImageException(String.format(MESSAGE_INVALID_IMAGE,