@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 516 B
JavaScript
import e from"../../constants/constants.mjs";import t from"./choose-accept-header-format.mjs";const n=n=>{let r=n.presets?.[n.query.preset??``],i=n.allowFormatQuery?t(n.accept,n.query.format):r?.format;return{selectedPreset:r,format:i,quality:r?.quality??e.media.imagePresetQuality,width:r?.width,height:r?.height,fit:r?.fit??`cover`,hasProcessing:!!(r||i),publicQuery:{preset:r?n.query.preset:void 0,format:n.allowFormatQuery?i:void 0}}};export{n as default};
//# sourceMappingURL=resolve-processing-request.mjs.map