Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__/
*.pyc
node_modules/
6 changes: 4 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}
</style>
<!-- Load JSZip for batch archiving -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js" integrity="sha384-+mbV2IY1Zk/X1p/nWllGySJSUN8uMs+gUAN10Or95UBH0fpj6GfKgPmgC5EXieXG" crossorigin="anonymous"></script>

<!-- Load ESM from esm.sh to automatically handle CJS conversion -->
<script type="importmap">
Expand Down Expand Up @@ -255,7 +255,9 @@ <h2>Online Converter</h2>
try {
// Fetch the wasm file explicitly (use unpkg to ensure raw binary response)
const wasmUrl = "https://unpkg.com/@imagemagick/magick-wasm@0.0.30/dist/magick.wasm";
const response = await fetch(wasmUrl);
const response = await fetch(wasmUrl, {
integrity: "sha384-mijzCtynibnb2Dqqwv/3Y+KGfHlSca0uaF6FJaMYUVByviMLDb5YcexhbvUWnKbF"
});
const wasmBytes = new Uint8Array(await response.arrayBuffer());

await initializeImageMagick(wasmBytes);
Expand Down