1
0
mirror of https://github.com/fumiama/imgsz.git synced 2026-06-12 06:00:28 +08:00

feat: support bmp & tiff format

This commit is contained in:
源文雨
2024-05-06 18:09:27 +09:00
parent 7dbe326aaa
commit f7e2ba842a
8 changed files with 554 additions and 0 deletions

View File

@@ -16,4 +16,7 @@ func init() {
return Size{d.width, d.height}, nil
})
RegisterFormat("webp", "RIFF????WEBPVP8", decodewebp)
RegisterFormat("bmp", "BM????\x00\x00\x00\x00", decodebmp)
RegisterFormat("tiff", leHeader, decodetiff)
RegisterFormat("tiff", beHeader, decodetiff)
}