From 5c7cabe18f3c2e58dc3f1162579cf79e4193f0fd Mon Sep 17 00:00:00 2001 From: Lawrence Wagerfield Date: Tue, 17 Oct 2023 08:36:13 +0100 Subject: [PATCH] Update docs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af3f6f9..e2da6dd 100644 --- a/README.md +++ b/README.md @@ -257,8 +257,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".