Artur Paikin 6 năm trước cách đây
mục cha
commit
d49d4cf91e
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      website/src/docs/thumbnail-generator.md

+ 3 - 1
website/src/docs/thumbnail-generator.md

@@ -7,7 +7,7 @@ permalink: docs/thumbnail-generator/
 category: 'Miscellaneous'
 ---
 
-`@uppy/thumbnail-generator` generates proportional thumbnails (file previews) for images that are added to Uppy. It then creates a string with a local preview url (via `URL.createObjectURL(blob)`) and sets it to `file.preview`. `thumbnail:generated` event is also emitted, see below for details.
+`@uppy/thumbnail-generator` generates proportional thumbnails (file previews) for images that are added to Uppy.
 
 This plugin is included by default with the [Dashboard](/docs/dashboard), so you don’t have to include it manually. But it is useful if you are not using the Dashboard and want to display image previews in your custom UI.
 
@@ -20,6 +20,8 @@ uppy.use(ThumbnailGenerator, {
 })
 ```
 
+> Now, the `file.preview` property will contain a URL to the thumbnail and `thumbnail:generated` event will be emitted, see below for details.
+
 ## Installation
 
 This plugin is published as the `@uppy/thumbnail-generator` package.