Ingvar Stepanyan
6f19d027b4
Delete processor.ts
2020-12-01 14:36:30 +00:00
Ingvar Stepanyan
73499d4a27
Add SIMD origin trial for dev--squoosh.netlify.app
2020-12-01 14:36:30 +00:00
Ingvar Stepanyan
8581785869
Rebase fixes
2020-12-01 14:36:30 +00:00
Ingvar Stepanyan
198ad0fb1b
Add SIMD support to libwebp
2020-12-01 14:36:30 +00:00
Ingvar Stepanyan
195762f64f
Point to custom fork for SIMD builds
2020-12-01 14:36:30 +00:00
Ingvar Stepanyan
a951096aaa
Support threads and threads+SIMD in WebP2
2020-12-01 14:36:30 +00:00
Jake Archibald
3d1ecc1215
Don't restrict drag & drop to images (so it works with wp2 & JXL)
2020-11-23 14:23:21 +00:00
Jake Archibald
13631f1cfc
Extra Wp2 Options ( #853 )
...
* wip
* wip
* Add extra options
* Even more options!
* Update src/features/encoders/wp2/client/index.tsx
Co-authored-by: Surma <surma@surma.dev >
Co-authored-by: Surma <surma@surma.dev >
2020-11-20 16:12:38 +00:00
Jake Archibald
f11e692d58
Unset loading on error. Fixes #855
2020-11-20 16:11:57 +00:00
Jake Archibald
6ebf94d1b6
Auto edge filter
2020-11-19 11:35:12 +00:00
Jake Archibald
a229662bed
Change JXL defaults
2020-11-19 11:27:03 +00:00
Jake Archibald
6da590c7d0
Merge branch 'rollup-build' into dev
...
# Conflicts:
# _headers.ejs
# codecs/oxipng/pkg/squoosh_oxipng_bg.js
# src/codecs/avif/encoder.ts
# src/codecs/oxipng/encoder.ts
# src/codecs/processor.ts
# src/codecs/util.ts
# src/components/intro/imgs/logo.svg
# src/missing-types.d.ts
# webpack.config.js
2020-11-19 11:12:29 +00:00
Jake Archibald
56e10b3aa2
Rollup build
2020-11-19 11:00:23 +00:00
Cătălin Mariș
bd4b67037b
Further optimize logo.svg ( #761 )
...
Co-authored-by: Jake Archibald <jaffathecake@gmail.com >
2020-10-15 15:48:56 +01:00
Ingvar Stepanyan
8c5c97e106
Remove obsolete @ts-ignore
2020-10-07 20:42:48 +01:00
Ingvar Stepanyan
bae243ccdb
Add feature detection to OxiPNG
2020-10-07 20:42:48 +01:00
Ingvar Stepanyan
9420dba3bc
Parallel OxiPNG improvements
...
- Refactor to work around Chromium's issue with postMessage queuing. https://bugs.chromium.org/p/chromium/issues/detail?id=1075645
- Convert codec code to TypeScript.
- Make separate parallel and non-parallel builds.
- Switch to nightly Rust for OxiPNG to allow parallel builds (but also reuse it for regular builds to avoid installing two toolchains).
2020-10-07 20:42:48 +01:00
Ingvar Stepanyan
e462875807
Type fix for gesturestart event
2020-10-07 20:42:48 +01:00
Ingvar Stepanyan
0747d2c419
Rework fallback for postMessage issue
...
Now initialise all workers with module+memory separately, and then instead of using postMessage to send thread pointers, push them into a crossbeam-deque on the Rust side.
Rayon already depends on crossbeam-dequeue, so we're not even adding another dependency, and this model allows us to push "tasks" (thread pointers) on the main thread and pop them on worker threads in arbitrary order without sacrificing correctness.
2020-10-07 20:42:48 +01:00
Ingvar Stepanyan
4c658b79ef
OxiPNG + threads PoC
2020-10-07 20:42:48 +01:00
Ingvar Stepanyan
685558847f
Multithread AVIF PoC
2020-10-07 20:42:48 +01:00
Trevor Manz
63ac34a662
Promisify emscripten modules & fix webp examples ( #817 )
2020-09-30 00:05:59 +01:00
Jake Archibald
239ffeb7a7
Comment out grayscale and 4:2:0 for now
2020-08-26 12:36:59 +01:00
Jake Archibald
95570c8b3c
Revert "Merge pull request #800 from GoogleChromeLabs/mozjpeg_dec"
...
This reverts commit 5715fb7b1b , reversing
changes made to 2c923e5239 .
2020-08-26 12:28:06 +01:00
Jake Archibald
6e52ac2a73
Simpler canDecode check
2020-08-26 11:41:21 +01:00
Jake Archibald
0abb6f18ba
Update options when updating state.
2020-08-25 16:54:01 +01:00
Jake Archibald
4e5a810770
Avoid caching the decoder if the browser already supports it
2020-08-25 14:31:20 +01:00
Jake Archibald
8a81792bd5
Finger-in-the-air defaults
2020-08-25 14:13:37 +01:00
Jake Archibald
3f57f9fef1
Feature test decoding capability
2020-08-25 14:13:21 +01:00
Jake Archibald
f3749a4e24
Ensure that mins can't be greater than maxs
2020-08-25 13:39:28 +01:00
Jake Archibald
8f2dcb5f48
Options mostly working
2020-08-25 13:11:10 +01:00
Surma
6b007a0235
Update paths for Squoosh PWA
2020-08-21 16:33:58 +01:00
Surma
3745a3fff1
Revert "Enable address sanitizer"
...
This reverts commit d89e846896 .
2020-08-11 18:41:42 +01:00
Surma
d89e846896
Enable address sanitizer
2020-08-11 18:41:09 +01:00
Ingvar Stepanyan
8036579a3c
RawImage -> ImageData; report errors with null
2020-08-05 15:10:33 +01:00
Surma
3cda8285a1
Update src/lib/util.ts
...
Co-authored-by: Ingvar Stepanyan <rreverser@google.com >
2020-08-05 14:40:09 +01:00
Surma
563b558204
Remove free() method
2020-08-05 14:39:41 +01:00
Surma
7893660679
Fix alpha channel in encoder
2020-08-05 14:39:26 +01:00
Ingvar Stepanyan
2edb8cbd7e
Upgrade AVIF decoding code
...
- Update to newer APIs.
- Avoid manual pixel-by-pixel copy in favour of decoding directly to desired format & bit depth.
- Avoid use-after-free by cloning the Uint8Array Wasm memory view into a JS-owned Uint8Array right away.
2020-08-05 14:38:56 +01:00
Surma
ac9a7767d2
Expose some options for AVIF
2020-08-05 14:38:29 +01:00
Surma
c29006d593
Add AVIF encoder without options
2020-08-05 14:38:26 +01:00
Surma
02807aab32
Add AVIF decoder to squoosh
2020-08-05 14:38:13 +01:00
Ingvar Stepanyan
c43f75f1f2
Merge branch 'dev' into button-position
2020-07-31 19:49:14 +01:00
Ingvar Stepanyan
227d32be7b
Fix install button position
...
Add `position: relative` to the parent `div` that owns the scrollbar, so that Install button positions itself relative to it and not to the whole document.
Fixes a bug where button would get rendered on top of a scrollbar.
2020-07-31 18:33:20 +01:00
Pete LePage
ecb0b15cdc
Merge branch 'dev' into analytics-update-3
2020-07-31 10:28:23 -04:00
Jake Archibald
ed451e4dfa
"native" to "builtin" ( #788 )
2020-07-30 14:43:46 +01:00
Jake Archibald
ddbeaa0870
Merge branch 'dev' into analytics-update-3
2020-07-29 11:52:24 +01:00
Pete LePage
b8d921ec16
Merge branch 'dev' into analytics-update-3
2020-07-28 13:45:20 -04:00
Surma
9c2b582986
Merge branch 'dev' into maskable-icon
2020-07-28 18:03:09 +01:00
Ingvar Stepanyan
93cbe557cd
Simplify memory management for other C++ codecs
2020-07-28 16:35:00 +01:00