Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tshradheya authored Nov 16, 2017
1 parent 268a11e commit d0da730
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d0da730

Please sign in to comment.