1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-29 08:22:11 +02:00
imgproxy/vips.h

80 lines
2.8 KiB
C
Raw Normal View History

2017-09-27 10:42:49 +02:00
#include <stdlib.h>
2017-09-27 10:42:49 +02:00
#include <vips/vips.h>
#include <vips/vips7compat.h>
enum ImgproxyImageTypes {
UNKNOWN = 0,
JPEG,
PNG,
WEBP,
GIF,
ICO,
SVG
};
int vips_initialize();
void clear_image(VipsImage **in);
void g_free_go(void **buf);
2017-09-27 21:17:17 +02:00
void swap_and_clear(VipsImage **in, VipsImage *out);
2017-09-27 21:17:17 +02:00
int vips_type_find_load_go(int imgtype);
int vips_type_find_save_go(int imgtype);
2018-09-07 16:46:16 +02:00
int vips_jpegload_go(void *buf, size_t len, int shrink, VipsImage **out);
int vips_pngload_go(void *buf, size_t len, VipsImage **out);
int vips_webpload_go(void *buf, size_t len, int shrink, VipsImage **out);
int vips_gifload_go(void *buf, size_t len, int pages, VipsImage **out);
int vips_svgload_go(void *buf, size_t len, double scale, VipsImage **out);
2018-09-07 16:46:16 +02:00
int vips_get_exif_orientation(VipsImage *image);
2018-10-02 14:20:23 +02:00
int vips_support_smartcrop();
2017-09-27 21:17:17 +02:00
VipsBandFormat vips_band_format(VipsImage *in);
2018-10-19 11:47:11 +02:00
gboolean vips_is_animated_gif(VipsImage * in);
gboolean vips_image_hasalpha_go(VipsImage * in);
2018-10-19 11:47:11 +02:00
int vips_copy_go(VipsImage *in, VipsImage **out);
2018-10-19 11:47:11 +02:00
int vips_cast_go(VipsImage *in, VipsImage **out, VipsBandFormat format);
2018-10-19 11:47:11 +02:00
int vips_resize_go(VipsImage *in, VipsImage **out, double scale);
int vips_resize_with_premultiply(VipsImage *in, VipsImage **out, double scale);
2018-10-19 11:47:11 +02:00
int vips_need_icc_import(VipsImage *in);
int vips_icc_import_go(VipsImage *in, VipsImage **out, char *profile);
int vips_colourspace_go(VipsImage *in, VipsImage **out, VipsInterpretation cs);
2018-10-19 11:47:11 +02:00
int vips_rot_go(VipsImage *in, VipsImage **out, VipsAngle angle);
int vips_flip_horizontal_go(VipsImage *in, VipsImage **out);
2018-10-19 11:47:11 +02:00
int vips_extract_area_go(VipsImage *in, VipsImage **out, int left, int top, int width, int height);
int vips_smartcrop_go(VipsImage *in, VipsImage **out, int width, int height);
2018-11-08 12:34:21 +02:00
int vips_gaussblur_go(VipsImage *in, VipsImage **out, double sigma);
int vips_sharpen_go(VipsImage *in, VipsImage **out, double sigma);
2017-09-27 10:42:49 +02:00
int vips_flatten_go(VipsImage *in, VipsImage **out, double r, double g, double b);
int vips_replicate_go(VipsImage *in, VipsImage **out, int across, int down);
int vips_embed_go(VipsImage *in, VipsImage **out, int x, int y, int width, int height);
2017-09-27 10:42:49 +02:00
2019-02-21 17:55:20 +02:00
int vips_ensure_alpha(VipsImage *in, VipsImage **out);
int vips_apply_opacity(VipsImage *in, VipsImage **out, double opacity);
2019-02-21 17:55:20 +02:00
int vips_apply_watermark(VipsImage *in, VipsImage *watermark, VipsImage **out, double opacity);
2017-09-27 21:17:17 +02:00
int vips_arrayjoin_go(VipsImage **in, VipsImage **out, int n);
2018-11-08 12:34:21 +02:00
int vips_jpegsave_go(VipsImage *in, void **buf, size_t *len, int strip, int quality, int interlace);
int vips_pngsave_go(VipsImage *in, void **buf, size_t *len, int interlace, int embed_profile);
int vips_webpsave_go(VipsImage *in, void **buf, size_t *len, int strip, int quality);
int vips_gifsave_go(VipsImage *in, void **buf, size_t *len);
int vips_icosave_go(VipsImage *in, void **buf, size_t *len);
2018-12-02 15:02:19 +02:00
void vips_cleanup();