From f75b6726e83c56f558ceda7a3426824044ce5cbb Mon Sep 17 00:00:00 2001 From: Lawrence Wagerfield Date: Tue, 17 Oct 2023 08:35:58 +0100 Subject: [PATCH] Update docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f29e08f..2940e3c 100644 --- a/README.md +++ b/README.md @@ -289,8 +289,8 @@ const options = { preview: true, // True by default if cropping is enabled. Previews PDFs and videos too. crop: true, // True by default. cropFilePath: image => { // Choose the file path used for JSON image crop files. - const {filePath} = image // In: https://www.bytescale.com/docs/upload-api/types/FileDetails - return `${filePath}.crop` // Out: https://www.bytescale.com/docs/upload-api/types/FilePathDefinition + const {filePath} = image // In: https://www.bytescale.com/docs/types/UploadedFile + return `${filePath}.crop` // Out: https://www.bytescale.com/docs/types/FilePathDefinition }, cropRatio: 4 / 3, // Width / Height. Undefined enables freeform (default). cropShape: "rect" // "rect" (default) or "circ".