fix(#42): change interlace type. fix C bindings

This commit is contained in:
Tomas Aparicio 2015-06-12 10:28:37 +01:00
commit 7be9d7bad5
7 changed files with 55 additions and 15 deletions

View file

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