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
22 lines
830 B
Plaintext
22 lines
830 B
Plaintext
/**
|
|
* Create a new image name based on the output image name, the dimensions and
|
|
* the extension.
|
|
*
|
|
* Ignore the fact that duplicate names could happen if the there is one
|
|
* size with `width AND height` and one with only `height OR width`. Because
|
|
* space is expensive, we will reuse the same image for both sizes.
|
|
*
|
|
* @param outputImageName - the sanitized image name
|
|
* @param bufferInfo - the buffer info
|
|
* @param extension - the extension to use
|
|
* @returns the new image name that is not taken
|
|
*/
|
|
type CreateImageNameArgs = {
|
|
extension: string;
|
|
height: number;
|
|
outputImageName: string;
|
|
width: number;
|
|
};
|
|
export declare const generateImageSizeFilename: ({ extension, height, outputImageName, width, }: CreateImageNameArgs) => string;
|
|
export {};
|
|
//# sourceMappingURL=generateImageSizeFilename.d.ts.map |