Files
klz-cables.com/.pnpm-store/v10/files/1a/2df8c1852ddcb774b70bd42446b7be957f33f15864da6ad939f489480ac4f5eaa7b7fcf30569c01b62f8c0b3a22fe6bc7dfae3518bbcb0b00a034a996ec76a
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

17 lines
726 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
*/ export const generateImageSizeFilename = ({ extension, height, outputImageName, width })=>{
return `${outputImageName}-${width}x${height}.${extension}`;
};
//# sourceMappingURL=generateImageSizeFilename.js.map