| Server IP : 159.203.156.69 / Your IP : 216.73.216.37 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 interface CloudimageOperations extends Operations {
/**
* Width of the image in pixels.
* @example "w=500"
*/
w?: number;
/**
* Height of the image in pixels.
* @example "h=300"
*/
h?: number;
q?: number;
force_format?: ImageFormat;
/**
* Prevents resizing if the target size is larger than the original image.
* @example "org_if_sml=1"
*/
org_if_sml?: 1;
/**
* Crop mode. Available options: crop, fit, cropfit, bound, cover.
* @example "func=crop"
*/
func?: "crop" | "fit" | "cropfit" | "bound" | "cover" | "face";
/**
* Gravity for cropping, defines the part of the image to be retained.
* @example "gravity=center"
*/
gravity?: "north" | "south" | "east" | "west" | "center" | "auto" | "face" | "smart" | `${number},${number}` | `${number}p,${number}p`;
/**
* Top-left corner of the crop area.
* @example "tl_px=100,100"
*/
tl_px?: string;
/**
* Bottom-right corner of the crop area.
* @example "br_px=200,200"
*/
br_px?: string;
/**
* Rotates the image in degrees counterclockwise.
* @example "r=90"
*/
r?: number;
/**
* Flips the image horizontally and/or vertically.
* @example "flip=h"
*/
flip?: "h" | "v";
/**
* Trims any solid-color border.
* @example "trim=10"
*/
trim?: number;
/**
* Applies rounded corners and optionally fills the background with a color.
* @example "radius=15"
*/
radius?: number;
/**
* Sets the margin around a detected face during face crop.
* @example "face_margin=60"
*/
face_margin?: string;
/**
* Background color for the image, accepts color name or hex code.
* @example "bg_color=FFFFFF"
*/
bg_color?: string;
ci_url_encoded?: 1 | "1";
}
export interface CloudimageOptions {
token?: string;
}
export declare const generate: URLGenerator<"cloudimage">;
export declare const extract: URLExtractor<"cloudimage">;
export declare const transform: URLTransformer<"cloudimage">;
//# sourceMappingURL=cloudimage.d.ts.map