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,