fix: upload fit not accounted for when editing focal point or crop (#4142)

Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com>
This commit is contained in:
Jessica Chowdhury
2023-11-14 16:19:23 +00:00
committed by GitHub
parent d6233cbf42
commit 45e9a559bb
2 changed files with 38 additions and 2 deletions

View File

@@ -96,6 +96,41 @@ export default buildConfigWithDefaults({
},
fields: [],
},
{
slug: 'object-fit',
upload: {
staticURL: '/object-fit',
staticDir: './object-fit',
mimeTypes: ['image/png', 'image/jpg', 'image/jpeg'],
imageSizes: [
{
name: 'fitContain',
width: 400,
height: 300,
fit: 'contain',
},
{
name: 'fitInside',
width: 300,
height: 400,
fit: 'inside',
},
{
name: 'fitCover',
width: 900,
height: 300,
fit: 'cover',
},
{
name: 'fitOutside',
width: 900,
height: 200,
fit: 'outside',
},
],
},
fields: [],
},
{
slug: 'crop-only',
upload: {