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
23 lines
733 B
Plaintext
23 lines
733 B
Plaintext
/**
|
|
* Create the result object for the image resize operation based on the
|
|
* provided parameters. If the name is not provided, an empty result object
|
|
* is returned.
|
|
*
|
|
* @param filename - the filename of the image
|
|
* @param width - the width of the image
|
|
* @param height - the height of the image
|
|
* @param filesize - the filesize of the image
|
|
* @param mimeType - the mime type of the image
|
|
* @returns a FileSize result object
|
|
*/ export const createImageSize = ({ filename = null, filesize = null, height = null, mimeType = null, url = null, width = null })=>{
|
|
return {
|
|
filename,
|
|
filesize,
|
|
height,
|
|
mimeType,
|
|
url,
|
|
width
|
|
};
|
|
};
|
|
|
|
//# sourceMappingURL=createImageSize.js.map |