Files
klz-cables.com/.pnpm-store/v10/files/7d/da91ae9f07a6ccad249fc743086da51a81438f63020db6551cc2fb796ea2ba35825d29dcba374a140e1f6ed1cd71432858a407f18abcdbce8104d2e2de1094
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

24 lines
1.0 KiB
Plaintext

import type { ImageSize, ProbedImageSize } from '../types.js';
/**
* Determine whether or not to resize the image.
* - resize using image config
* - resize using image config with focal adjustments
* - do not resize at all
*
* `imageResizeConfig.withoutEnlargement`:
* - undefined [default]: uploading images with smaller width AND height than the image size will return null
* - false: always enlarge images to the image size
* - true: if the image is smaller than the image size, return the original image
*
* `imageResizeConfig.withoutReduction`:
* - false [default]: always enlarge images to the image size
* - true: if the image is smaller than the image size, return the original image
*
* @return 'omit' | 'resize' | 'resizeWithFocalPoint'
*/
export declare const getImageResizeAction: ({ dimensions: originalImage, hasFocalPoint, imageResizeConfig, }: {
dimensions: ProbedImageSize;
hasFocalPoint?: boolean;
imageResizeConfig: ImageSize;
}) => "omit" | "resize" | "resizeWithFocalPoint";
//# sourceMappingURL=getImageResizeAction.d.ts.map