Artur Paikin 6 年之前
父节点
当前提交
d49d4cf91e
共有 1 个文件被更改,包括 3 次插入1 次删除
  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.