fix imgproxy using fill resizes rather than fit

This commit is contained in:
keyan 2023-10-02 04:39:56 -05:00
parent 1ee3d6aa0a
commit 2fbd4f8066
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ export const createImgproxyUrls = async (id, text, { forceFetch }) => {
imgproxyUrls[url] = {} imgproxyUrls[url] = {}
for (const res of resolutions) { for (const res of resolutions) {
const [w, h] = res.split('x') const [w, h] = res.split('x')
const processingOptions = `/rs:fill:${w}:${h}` const processingOptions = `/rs:fit:${w}:${h}`
imgproxyUrls[url][`${w}w`] = createImgproxyUrl(url, processingOptions) imgproxyUrls[url][`${w}w`] = createImgproxyUrl(url, processingOptions)
} }
} }