mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-12-23 22:11:10 +02:00
28 lines
1.0 KiB
C
28 lines
1.0 KiB
C
#include <vips/vips.h>
|
|
|
|
typedef struct _ImgproxyLoadOptions {
|
|
double Shrink; // Shrink-on-load factor. 1.0 means no shrinking.
|
|
gboolean Thumbnail; // Whether to load thumbnail (for heif).
|
|
|
|
int Page; // Page number to load (for multi-page images).
|
|
int Pages; // Number of pages to load (for multi-page images).
|
|
|
|
gboolean PngUnlimited; // Whether to disable vips_pngload limits.
|
|
gboolean SvgUnlimited; // Whether to disable vips_svgload limits.
|
|
} ImgproxyLoadOptions;
|
|
|
|
typedef struct _ImgproxySaveOptions {
|
|
gboolean JpegProgressive; // Whether to save JPEG as progressive.
|
|
|
|
gboolean PngInterlaced; // Whether to save PNG as interlaced.
|
|
gboolean PngQuantize; // Whether to quantize PNG (save with palette).
|
|
int PngQuantizationColors; // Number of colors to use in PNG quantization.
|
|
|
|
VipsForeignWebpPreset WebpPreset; // WebP preset to use.
|
|
int WebpEffort; // WebP encoding effort level.
|
|
|
|
int AvifSpeed; // AVIF encoding speed.
|
|
|
|
int JxlEffort; // JPEG XL encoding effort.
|
|
} ImgproxySaveOptions;
|