From d0065529e3c3f349b74419d6b2f0b2151c983725 Mon Sep 17 00:00:00 2001 From: Reinder Nijhoff Date: Fri, 24 May 2024 17:26:38 +0200 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 818fa05..970fdc8 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,10 @@ import {FastImageSequence} from '@mediamonks/fast-image-sequence'; const options = { frames: 100, - - src: { + src: { imageURL: (index) => `path/to/your/image/sequence/image${index}.jpg`, }, + loop: true, objectFit: 'cover', }; @@ -58,11 +58,11 @@ returns a string representing the URL of the image at an index in the tar file. ```ts const options = { frames: 100, - - src: { + src: { tarURL: 'path/to/your/tar/file.tar', imageURL: (index) => `image${index}.jpg`, }, + loop: true, objectFit: 'cover', };