mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 23:18:19 -07:00
refactor(type): simplify image type matching
This commit is contained in:
parent
d06464fca2
commit
9342d6482a
3 changed files with 23 additions and 29 deletions
|
|
@ -68,7 +68,7 @@ func Metadata(buf []byte) (ImageMetadata, error) {
|
|||
Alpha: vipsHasAlpha(image),
|
||||
Profile: vipsHasProfile(image),
|
||||
Space: vipsSpace(image),
|
||||
Type: getImageTypeName(imageType),
|
||||
Type: ImageTypeName(imageType),
|
||||
}
|
||||
|
||||
return metadata, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue