@bluepic/embed 0.6.27 → 0.6.28

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.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copies a GIF block by block and leaves out everything that can carry
3
+ * metadata: comment extensions and every application extension except the
4
+ * animation loop blocks (NETSCAPE2.0 / ANIMEXTS1.0). XMP (which may hold GPS,
5
+ * author, software) lives in an application extension.
6
+ *
7
+ * Why not re-encode like other uploads: a canvas cannot write GIF, so the
8
+ * re-encode that strips EXIF from photos (AVV) turned every animated GIF into
9
+ * a still. GIF has no EXIF block; dropping these extensions removes what
10
+ * metadata it can carry and keeps the animation byte for byte.
11
+ *
12
+ * Returns null when the bytes are not a well-formed GIF — the caller then falls
13
+ * back to the normal re-encode.
14
+ */
15
+ export declare function sanitizeGif(input: Uint8Array): Uint8Array | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluepic/embed",
3
- "version": "0.6.27",
3
+ "version": "0.6.28",
4
4
  "description": "Bluepic embed sdk",
5
5
  "type": "module",
6
6
  "sideEffects": false,