| Server IP : 159.203.156.69 / Your IP : 216.73.216.28 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/tanviranik.com/node_modules/unpic/script/src/providers/ |
Upload File : |
import { ImageFormat, Operations, URLExtractor, URLGenerator, type URLTransformer } from "../types.js";
export type OverlayAlignment = "top" | "bottom" | "left" | "right" | "middle" | "center";
export type EdgeValues = number | `${number},${number}` | `${number},${number},${number}` | `${number},${number},${number},${number}`;
export interface ContentstackOperations extends Operations<"pjpg" | "webpll" | "webply"> {
/**
* Defines how the image fits into the specified dimensions.
*/
fit?: "crop" | "bounds";
/**
* Enables automatic format selection (usually WebP).
*/
auto?: "webp" | "avif";
format?: ImageFormat | "pjpg" | "webpll" | "webply";
/**
* Disables upscaling of images. True by default.
*/
disable?: "upscale" | false;
/**
* Trim an image from the edges. The value for this parameter can be given in pixels or percentage.
*/
trim?: EdgeValues;
/**
* Control the cardinal orientation of the given image
*/
orient?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
/**
* Overlay an image on top of another image.
*/
overlay?: string;
/**
* Define the position of the overlay image
*/
"overlay-align"?: OverlayAlignment | `${OverlayAlignment},${OverlayAlignment}`;
/**
* Pad the image edges
*/
padding?: EdgeValues;
/**
* Pad the overlay edges
*/
"overlay-padding"?: EdgeValues;
/**
* Set the background color for padding
*/
bgcolor?: string;
/**
* Device pixel ratio
*/
dpr?: number;
/**
* Blur the image
*/
blur?: number;
/**
* Extract a frame from an animated gif. Only the first frame is supported.
*/
frame?: 1;
/**
* Sharpen the image
*/
sharpen?: `a${number},r${number},t${number}`;
/**
* Saturation of the image
*/
saturation?: number;
/**
* Contrast of the image
*/
contrast?: number;
/**
* Brightness of the image
*/
brightness?: number;
/**
* Sets the resize filter
*/
filter?: "nearest" | "bilinear" | "bicubic" | "lanczos3" | "lanczos2";
/**
* Increase the size of the canvas that surrounds an image
*/
canvas?: string;
}
export interface ContentstackOptions {
/**
* The base URL for the images.
*/
baseURL?: "https://images.contentstack.io/" | "https://eu-images.contentstack.com/" | "https://azure-na-images.contentstack.com/" | "https://azure-eu-images.contentstack.com/" | (string & {});
}
export declare const generate: URLGenerator<"contentstack">;
export declare const extract: URLExtractor<"contentstack">;
export declare const transform: URLTransformer<"contentstack">;
//# sourceMappingURL=contentstack.d.ts.map