Co-Authored-By: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
Paul 2020-01-01 11:20:17 +01:00 committed by GitHub
parent 40a9a893da
commit 780105d695
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -642,7 +642,7 @@ func vipsImageType(buf []byte) ImageType {
if IsTypeSupported(MAGICK) && strings.HasSuffix(readImageType(buf), "MagickBuffer") {
return MAGICK
}
// NOTE: libheif current;y only supports heic sub types; see:
// NOTE: libheif currently only supports heic sub types; see:
// https://github.com/strukturag/libheif/issues/83#issuecomment-421427091
if IsTypeSupported(HEIF) && buf[4] == 0x66 && buf[5] == 0x74 && buf[6] == 0x79 && buf[7] == 0x70 &&
buf[8] == 0x68 && buf[9] == 0x65 && buf[10] == 0x69 && buf[11] == 0x63 {