mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-09 07:28:44 -07:00
fix(#42): change interlace type. fix C bindings
This commit is contained in:
commit
7be9d7bad5
7 changed files with 55 additions and 15 deletions
9
type.go
9
type.go
|
|
@ -23,13 +23,16 @@ func DetermineImageTypeName(buf []byte) string {
|
|||
|
||||
// Check if a given image type is supported
|
||||
func IsTypeSupported(t ImageType) bool {
|
||||
return t == JPEG || t == PNG || t == WEBP
|
||||
return t == JPEG || t == PNG || t == WEBP || t == MAGICK
|
||||
}
|
||||
|
||||
// Check if a given image type name is supported
|
||||
func IsTypeNameSupported(t string) bool {
|
||||
return t == "jpeg" || t == "jpg" ||
|
||||
t == "png" || t == "webp"
|
||||
return t == "jpeg" ||
|
||||
t == "jpg" ||
|
||||
t == "png" ||
|
||||
t == "webp" ||
|
||||
t == "magick"
|
||||
}
|
||||
|
||||
func getImageTypeName(code ImageType) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue