You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The image will be resized according to the provided
221
221
* resize config. If no image sizes are requested, the resolved data will be empty.
222
-
* For every image that dos not need to be resized, an result object with `null`
222
+
* For every image that does not need to be resized, a result object with `null`
223
223
* parameters will be returned.
224
224
*
225
225
* @param resizeConfig - the resize config
@@ -256,7 +256,13 @@ export async function resizeAndTransformImageSizes({
256
256
returndefaultResult
257
257
}
258
258
259
-
constsharpBase=sharp(file.tempFilePath||file.data).rotate()// pass rotate() to auto-rotate based on EXIF data. https://github.com/payloadcms/payload/pull/3081
constsharpBase: Sharp|undefined=sharp(file.tempFilePath||file.data,sharpOptions).rotate()// pass rotate() to auto-rotate based on EXIF data. https://github.com/payloadcms/payload/pull/3081
0 commit comments