From 428216caffe8e04b1959b7171ad2de9ebb540c50 Mon Sep 17 00:00:00 2001 From: foswret Date: Tue, 12 May 2026 19:02:50 -0500 Subject: switch from pkg-config to pkgconf, pull in MagickWand library, move image-related functions to image.h, create resize_image(), get_image_width() and get_image_height --- src/image.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/image.h (limited to 'src/image.h') diff --git a/src/image.h b/src/image.h new file mode 100644 index 0000000..117efaa --- /dev/null +++ b/src/image.h @@ -0,0 +1,13 @@ +int draw_image(cairo_t *c, char *path, double x, double y); + +int draw_month_art(cairo_t *c, struct dimensions *d, char *path); + +int resize_image(char *path, double width, double height, bool create_new); + +int crop_image(char *path, double width, double height, double x, double y, bool create_new); + +unsigned long get_image_width(char *path); + +unsigned long get_image_height(char *path); + +int prepare_month_art(char *path, struct dimensions *d); -- cgit v1.2.3