refactor(type): simplify image type matching

This commit is contained in:
Tomas Aparicio 2015-10-04 10:05:05 +01:00
parent d06464fca2
commit 9342d6482a
3 changed files with 23 additions and 29 deletions

View file

@ -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