mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-13 17:30:28 -07:00
refactor(type)
This commit is contained in:
parent
5e47888d78
commit
da8c9707c9
3 changed files with 7 additions and 15 deletions
9
type.go
9
type.go
|
|
@ -9,11 +9,6 @@ const (
|
|||
MAGICK = "magick"
|
||||
)
|
||||
|
||||
type Type struct {
|
||||
Name string
|
||||
Mime string
|
||||
}
|
||||
|
||||
func DetermineType(buf []byte) *Type {
|
||||
return &Type{Name: "jpg", Mime: "image/jpg"}
|
||||
func DetermineType(buf []byte) string {
|
||||
return vipsImageType(buf)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue