Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

More conservative tiling size

Surma436faa17af65
diff --git a/codecs/rotate/rotate.rs b/codecs/rotate/rotate.rs
index 5db4d10b..11edcbd8 100644
--- a/codecs/rotate/rotate.rs
+++ b/codecs/rotate/rotate.rs
@@ -22,7 +22,7 @@ impl<T> HardUnwrap<T> for Option<T> {
}
}
-const TILE_SIZE: usize = 64;
+const TILE_SIZE: usize = 16;
#[no_mangle]
fn rotate(width: usize, height: usize, rotate: usize) {
diff --git a/codecs/rotate/rotate.wasm b/codecs/rotate/rotate.wasm
index 6774a3b4..c897ad01 100755
Binary files a/codecs/rotate/rotate.wasm and b/codecs/rotate/rotate.wasm differ