Adding GIF, PDF and SVG support (libvips 8.3)

This commit is contained in:
Yoan Blanc 2016-08-23 11:40:01 +02:00
parent 308a36afc6
commit 6b76a33673
No known key found for this signature in database
GPG key ID: 6058CF4574298812
15 changed files with 843 additions and 11 deletions

11
vips.h
View file

@ -30,6 +30,9 @@ enum types {
WEBP,
PNG,
TIFF,
GIF,
PDF,
SVG,
MAGICK
};
@ -266,6 +269,14 @@ vips_init_image (void *buf, size_t len, int imageType, VipsImage **out) {
} else if (imageType == TIFF) {
code = vips_tiffload_buffer(buf, len, out, "access", VIPS_ACCESS_RANDOM, NULL);
#if (VIPS_MAJOR_VERSION >= 8)
#if (VIPS_MINOR_VERSION >= 3)
} else if (imageType == GIF) {
code = vips_gifload_buffer(buf, len, out, "access", VIPS_ACCESS_RANDOM, NULL);
} else if (imageType == PDF) {
code = vips_pdfload_buffer(buf, len, out, "access", VIPS_ACCESS_RANDOM, NULL);
} else if (imageType == SVG) {
code = vips_svgload_buffer(buf, len, out, "access", VIPS_ACCESS_RANDOM, NULL);
#endif
} else if (imageType == MAGICK) {
code = vips_magickload_buffer(buf, len, out, "access", VIPS_ACCESS_RANDOM, NULL);
#endif