mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
allow reading imageType AVIF via libheif
This commit is contained in:
parent
ede6a2e5bc
commit
200b5ad680
1 changed files with 4 additions and 0 deletions
4
vips.h
4
vips.h
|
|
@ -456,6 +456,10 @@ vips_init_image (void *buf, size_t len, int imageType, VipsImage **out) {
|
|||
#if (VIPS_MAJOR_VERSION > 8 || (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION >= 8))
|
||||
} else if (imageType == HEIF) {
|
||||
code = vips_heifload_buffer(buf, len, out, "access", VIPS_ACCESS_RANDOM, NULL);
|
||||
#endif
|
||||
#if (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION >= 9)
|
||||
} else if (imageType == AVIF) {
|
||||
code = vips_heifload_buffer(buf, len, out, "access", VIPS_ACCESS_RANDOM, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue