heic-to 1.1.11 → 1.1.12

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 CHANGED
@@ -8,6 +8,7 @@ Currently, heic-to is using [libheif 1.19.7](https://github.com/strukturag/libhe
8
8
 
9
9
  | Release | libheif |
10
10
  | -------- | -------- |
11
+ | 1.1.12 | 1.19.7 |
11
12
  | 1.1.11 | 1.19.7 |
12
13
  | 1.1.10 | 1.19.7 |
13
14
  | 1.1.9 | 1.19.7 |
@@ -72,6 +73,26 @@ Fix it by using `csp/heic-to`
72
73
  + import { heicTo } from "heic-to/csp"
73
74
  ```
74
75
 
76
+ #### Access global variable with IIFE build
77
+
78
+ If you would like to access heic-to with pure JavaScript without package builder like with CDN.
79
+
80
+ ```html
81
+ <script src="https://cdn.jsdelivr.net/npm/heic-to@1.1.12/dist/iife/heic-to.js"></script>
82
+ <script>
83
+ /*...*/
84
+ if (await HeicTo.isHeic(file)) {
85
+ const jpeg = await HeicTo({
86
+ blob: file,
87
+ type: "image/jpeg",
88
+ quality: 0.5
89
+ })
90
+ /*...*/
91
+ }
92
+ /*...*/
93
+ </script>
94
+ ```
95
+
75
96
  ### Development guide
76
97
 
77
98
  #### How to fast test your changes on local?