Skip to content

API / imgsplit

函数: imgsplit()

调用签名

ts
function imgsplit(imgurl: string, height?: number): Promise<OuputDataType[]>;

图片分割

参数

参数类型描述
imgurlstring图片地址
height?number分割高度

返回

Promise<OuputDataType[]>

调用签名

ts
function imgsplit(buffer: Buffer, height?: number): Promise<OuputDataType[]>;

图片分割

参数

参数类型描述
bufferBufferbuffer
height?number分割高度

返回

Promise<OuputDataType[]>

调用签名

ts
function imgsplit(options: ImgSplitOption): Promise<OuputDataType[]>;

图片分割

参数

参数类型描述
optionsImgSplitOption选项

返回

Promise<OuputDataType[]>

Released under the MIT License.