pixel-data-js 0.11.0 → 0.11.1
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/dist/index.dev.cjs +3 -1
- package/dist/index.dev.cjs.map +1 -1
- package/dist/index.dev.js +3 -1
- package/dist/index.dev.js.map +1 -1
- package/dist/index.prod.cjs +3 -1
- package/dist/index.prod.cjs.map +1 -1
- package/dist/index.prod.js +3 -1
- package/dist/index.prod.js.map +1 -1
- package/package.json +1 -1
- package/src/ImageData/serialization.ts +5 -2
package/dist/index.prod.js
CHANGED
|
@@ -1564,7 +1564,9 @@ function resizeImageData(current, newWidth, newHeight, offsetX = 0, offsetY = 0)
|
|
|
1564
1564
|
|
|
1565
1565
|
// src/ImageData/serialization.ts
|
|
1566
1566
|
function base64EncodeArrayBuffer(buffer) {
|
|
1567
|
-
const
|
|
1567
|
+
const uint8 = new Uint8Array(buffer);
|
|
1568
|
+
const decoder = new TextDecoder("latin1");
|
|
1569
|
+
const binary = decoder.decode(uint8);
|
|
1568
1570
|
return btoa(binary);
|
|
1569
1571
|
}
|
|
1570
1572
|
function base64DecodeArrayBuffer(encoded) {
|