polotno-node 3.5.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/assets/id3-B1cFGCGS.js +16 -0
- package/dist/assets/index-ChlnlbAg.js +647 -0
- package/dist/assets/{lib-BEzl6SFD.js → lib-Dlaz_6fT.js} +1 -1
- package/dist/index.html +2 -2
- package/lib/instance.js +5 -0
- package/package.json +6 -6
- package/dist/assets/id3-Brg-Xwuw.js +0 -16
- package/dist/assets/index-DPXoKCa_.js +0 -654
package/README.md
CHANGED
|
@@ -262,6 +262,13 @@ const url = await instance.jsonToDataURL(json, { pixelRatio: 0.2 });
|
|
|
262
262
|
// const url = await store.toDataURL({ pixelRatio: 0.2 });
|
|
263
263
|
```
|
|
264
264
|
|
|
265
|
+
### Downscaling quality
|
|
266
|
+
|
|
267
|
+
Raster images displayed below their source size are automatically resampled
|
|
268
|
+
with Magic Kernel Sharp during export — the resampler Facebook and Instagram
|
|
269
|
+
use — including `pixelRatio < 1` exports. For the best output, pass full-resolution
|
|
270
|
+
image sources in the design and let the export perform the one reduction.
|
|
271
|
+
|
|
265
272
|
### `attrs.skipDownloads` (video export only)
|
|
266
273
|
|
|
267
274
|
By default, when exporting video and **only** when using the default local client (i.e. you did **not** pass `createInstance({ url })`), `polotno-node` will:
|