Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
30 lines
946 B
Plaintext
30 lines
946 B
Plaintext
import type { SanitizedConfig } from '../config/types.js';
|
|
import type { PayloadRequest } from '../types/index.js';
|
|
import type { WithMetadata } from './optionallyAppendMetadata.js';
|
|
import type { UploadEdits } from './types.js';
|
|
type CropImageArgs = {
|
|
cropData: UploadEdits['crop'];
|
|
dimensions: {
|
|
height: number;
|
|
width: number;
|
|
};
|
|
file: PayloadRequest['file'];
|
|
heightInPixels: number;
|
|
req?: PayloadRequest;
|
|
sharp: SanitizedConfig['sharp'];
|
|
widthInPixels: number;
|
|
withMetadata?: WithMetadata;
|
|
};
|
|
export declare function cropImage({ cropData, dimensions, file: fileArg, heightInPixels, req, sharp, widthInPixels, withMetadata, }: CropImageArgs): Promise<{
|
|
data: Buffer;
|
|
info: import("sharp").OutputInfo;
|
|
} | {
|
|
data: Buffer<ArrayBufferLike>;
|
|
info: {
|
|
height: number;
|
|
size: number;
|
|
width: number;
|
|
};
|
|
}>;
|
|
export {};
|
|
//# sourceMappingURL=cropImage.d.ts.map |