Utilities.getImageWithLogo(srcImage, stream, Utilities.getFormatName(srcImage), logo);
stream.close();
} catch (IOException e) {
LOG.warn("Error while copying " + srcImage.getPath() + ":\n" +
"\t\t" + e.getMessage());
throw new TubainaException("Couldn't copy image", e);
}
} else {
LOG.warn("Error while copying '" + srcImage.getPath() + "':\n" +
"\t\tDestination image '" + destinationFile.getPath() + "' already exists");
}
} else {
LOG.warn("Image: '" + srcImage.getPath() + "' doesn't exist");
throw new TubainaException("Image Doesn't Exists");
}
}