Fix BufferedImage compressed

This commit is contained in:
ryoii 2020-04-29 01:48:11 +08:00
parent 4840a57b4a
commit 1a557984f4

View File

@ -37,7 +37,7 @@ import javax.imageio.ImageIO
*/
@JvmOverloads
@Throws(IOException::class)
fun BufferedImage.toExternalImage(formatName: String = "gif"): ExternalImage {
fun BufferedImage.toExternalImage(formatName: String = "png"): ExternalImage {
val file = createTempFile().apply { deleteOnExit() }
val digest = MessageDigest.getInstance("md5")