fix: 修复保存 gif 图片扩展名为 jpg
This commit is contained in:
parent
8f6663c83c
commit
c347420dee
|
|
@ -94,9 +94,7 @@ object ImageUtil {
|
|||
if (inputStream == null) return false
|
||||
val bytes = ByteArray(4)
|
||||
try {
|
||||
inputStream.mark(0)
|
||||
inputStream.read(bytes)
|
||||
inputStream.reset()
|
||||
val str = String(bytes)
|
||||
return str.equals("GIF8", ignoreCase = true)
|
||||
} catch (e: IOException) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue