mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 14:50:43 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3d5e928382
@ -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