Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Yackers <7115964+yackers@users.noreply.github.com>
  • Loading branch information
yackers authored Jan 20, 2025
1 parent 82745c1 commit aed269f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -723,13 +723,15 @@ and can be performed in the background (with isolates or WorkManager).
```dart
Future<DocumentThumbnail?> thumbnail(DocumentFile file) => file.thumbnail(width: 256, height: 256, quality: 70);
```
> [!NOTE]
> ⚠️ Sometimes due to different document providers, thumbnail can have bigger dimensions, than requested.
Some document providers may not support thumbnail generation.
> [!NOTE]
> ⚠️ Sometimes due to different document providers, thumbnail can have bigger dimensions, than requested.
> Some document providers may not support thumbnail generation.
> [!TIP]
> ⚠️ If file is local image, only `jpg`, `png`, `webp`, `gif`
types are currently supported for thumbnail generation, in all other cases support depends on the document provider.
> [!TIP]
> ⚠️ If file is local image, only `jpg`, `png`, `webp`, `gif`
> types are currently supported for thumbnail generation, in all other cases support depends on the document provider.
- `thumbnailFile` `📄` Get the thumbnail of the file as a `File`.
Expand Down

0 comments on commit aed269f

Please sign in to comment.