mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 07:30:09 +08:00
Fix BufferedImage compressed
This commit is contained in:
parent
4840a57b4a
commit
1a557984f4
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user