Ziemowit Zabawa
18b53e2b8a
JPEG XL: Add lossy Modular option ( #1136 )
...
* Improve .gitattributes
* Add disabled checkbox style
* Update Makefile
* Update jxl_enc.cpp
* add -O3 flag to skia compilation for optimization's sake
* Bump libjxl revision to 9f544641ec83f6abd9da598bdd08178ee8a003e0
Change use of EncodeFile from `EncodeFile(cparams, &io, &passes_enc_state, &bytes, /*aux=*/nullptr, pool_ptr)` to `EncodeFile(cparams, &io, &passes_enc_state, &bytes, /*cms=*/nullptr, /*aux=*/jxl::GetJxlCms(), pool_ptr)`
* JPEG XL: Add lossy Modular option
Co-authored-by: CanadianBaconBoi <beamconnor@gmail.com >
Co-authored-by: CanadianBaconBoi <bc.bacon.bits@gmail.com >
2022-01-21 12:42:27 +00:00
Surma
66ec763667
Merge pull request #1171 from TimvdLippe/fix-webassembly-instantiate
2021-10-20 15:42:50 +01:00
Surma
029eda7b37
Merge branch 'dev' into fix-webassembly-instantiate
2021-10-20 15:36:48 +01:00
Tim van der Lippe
e6810059ef
Add warning for using multiple image pools
...
Instantiating and using multiple image pools is not intended and can
lead to memory problems. Instead, users should use a single pool and
reuse that pool across all image processing. Therefore, let's add
a warning in the README to specify call this out and avoid users
of running into issues.
Relates to #1065
2021-10-20 14:56:34 +01:00
Surma
4eba015009
Merge pull request #1165 from TimvdLippe/update-typescript
2021-10-20 13:25:54 +01:00
Surma
dd49a1f23d
Merge branch 'dev' into update-typescript
2021-10-20 13:15:39 +01:00
Surma
5ecb99992c
Merge pull request #1169 from TimvdLippe/update-prettier
2021-10-20 13:15:32 +01:00
Surma
d9c6ebe0a2
Merge branch 'dev' into update-prettier
2021-10-20 12:48:59 +01:00
Surma
fba67a7a18
Merge pull request #1170 from TimvdLippe/fix-husky
2021-10-20 12:47:01 +01:00
Tim van der Lippe
129b925098
Fix Husky pre-commit
...
By upgrading to version 7, we now ensure that NPM/Yarn will run
the `prepare` script and appropriately install Husky. This also
migrates us to the `pre-commit` hook as a separate file, rather
than as part of the `package.json` definition.
2021-10-20 12:44:12 +01:00
Tim van der Lippe
e23bc4d2e5
Update Prettier
...
Also manually run prettier on `src/` and `lib/` to ensure
consistent formatting.
2021-10-20 12:28:45 +01:00
Tim van der Lippe
f523a07f01
Update TypeScript and types packages
...
This pulls in TypeScript 4.4, which ships ResizeObserver in the DOM
types, as well as sets caught errors to `unknown`, requiring explicit
checks for `AbortError`.
2021-10-20 11:36:27 +01:00
Vignesh Raj
e3f840c6da
Added Apple touch Icon for PWA ( #1160 )
2021-10-15 11:52:13 +01:00
Jake Archibald
cad09160b6
Reducing browser spinner time ( #1157 )
2021-09-20 13:49:53 +01:00
Surma
9663c23489
Merge pull request #1151 from ergunsh/improve-encode-types
...
Improve `encode` API and its types
2021-09-17 13:50:29 +01:00
ergunsh
95a1b35c91
Update encodedWith to contain resolved values
...
We already await the promises that we set on the `encodedWith` instead of setting already
resolved promises to `encodedWith` we can set the resolved values
So, the users can use like
`const { mozjpeg: { binary } } = await image.encode({ mozjpeg })` or
they can first run
`await image.encode({ mozjpeg })` and then
`image.encodedWith.mozjpeg.binary`
2021-09-10 15:18:14 +02:00
ergunsh
914cdea41d
Return encode result from Image.encode calls
...
Before this, there were one way to use the API:
call `await image.encode({ mozjpeg: {} })`
then use `encodedWith` by asserting that `mozjpeg` property exists on it
After adding return value to encode, people
will be able to use it like
`const { mozjpeg } = await image.encode({ mozjpeg: {} });`
which provides better type safety
2021-09-10 14:45:20 +02:00
ergunsh
6bfce29af6
Improve typing of Image.encode
...
Instead of returning `any` we're now returning the whole object.
Still from typing perspective, the API is not that
great since we don't have any type relation
between `encode` calls and `encodedWith` property. Maybe we can think about
returning directly from `encode` call
with the returned object having properties
that is supplied in `encode` calls
2021-09-10 14:08:21 +02:00
Surma
64cad1cc23
Merge pull request #1123 from styfle/load-file-async
...
Reduce `@squoosh/lib` Node.js API usage (make it run on the web)
2021-09-08 22:30:53 +01:00
Steven
87f25d909b
Merge branch 'dev' into load-file-async
2021-09-08 17:04:50 -04:00
Steven
bdfdaf53af
Remove unused readme link per atjn
...
Co-authored-by: Anton <dev@atjn.dk >
2021-09-08 17:04:46 -04:00
Surma
1ab9e8b3ab
Merge pull request #1141 from ergunsh/improve-exposed-types
2021-09-08 17:57:46 +01:00
Ergün Erdoğmuş
2718077d3d
Merge branch 'dev' into improve-exposed-types
2021-09-08 19:48:01 +03:00
Jake Archibald
255dfa434a
Update pointer-tracker ( #1147 )
2021-09-07 14:43:19 +01:00
François Beaufort
0bef05bcd4
Remove origin trial header
2021-09-06 15:00:48 +01:00
ergunsh
c4bc369c6b
Fix typo in triangle
2021-09-03 15:03:28 +03:00
ergunsh
68ce8f420d
Improve encode parameter typing
2021-09-03 14:54:08 +03:00
ergunsh
27f103fee5
Improve preprocess parameter type
2021-09-03 11:53:52 +03:00
Steven
c21d3714a8
Fix link in readme
2021-09-02 16:38:22 -04:00
Steven
3ea0d88c4f
Apply suggestions from atjn
...
Co-authored-by: Anton <dev@atjn.dk >
2021-09-02 16:36:37 -04:00
Surma
00cfdafdf3
Merge pull request #1138 from jcao219/fix-windows-path
...
Use pathify to calculate absolute paths for cross-platform compatibility
2021-08-31 13:34:28 +01:00
Jimmy Cao
92f52319da
Use pathify to calculate absolute paths for cross-platform compatibility
2021-08-31 00:18:21 -07:00
Jake Archibald
023304803f
JPEG-XL: Better 'effort' and adding noise synth ( #1039 )
2021-08-27 14:18:54 +01:00
Vishal
6b08cd2355
Aliasing toggle button ( #1132 )
2021-08-26 16:44:20 +01:00
Jake Archibald
db1a5138e6
Fix pinch zoom on iOS ( #1133 )
2021-08-26 15:59:42 +01:00
Jake Archibald
a547491146
Maintain DC_SCAN_OPT_MODE if subsampling is > 2. Fixes #1129 ( #1130 )
2021-08-26 14:29:13 +01:00
Jake Archibald
6e427f9208
The observer is null if user prefers reduced motion
...
Turns out TypeScript is there for a reason and shouldn't be bypassed. Fixes #1135
2021-08-25 14:10:57 +01:00
Jake Archibald
0d35fbd349
Fix horizontal scroll on option elements on mobile ( #1134 )
2021-08-25 09:25:09 +01:00
Mike DelGaudio
4e901c714c
[RFC] Add Three Homepage Sections ( #1112 )
2021-08-25 09:08:22 +01:00
Adam Burgess
b74788e036
Stable mousewheel scrolling, one wheel up + one wheel down = no change ( #1131 )
2021-08-24 14:52:25 +01:00
Vishal
14c3d190e9
Max cap on scale #905 ( #1128 )
2021-08-23 13:27:17 +01:00
Steven
202d0bc088
Generalize file to ArrayLike<number>
2021-08-20 18:48:30 -04:00
Steven
bdb5b16372
Remove Buffer from decodeFile()
2021-08-20 18:36:23 -04:00
Steven
30140c2b7a
Fix CLI bug
2021-08-20 18:35:29 -04:00
Steven
10996cdbca
Add missing import
2021-08-20 16:08:01 -04:00
Steven
e5806507d4
Remove Node.js API surface in libsquoosh
2021-08-20 15:11:14 -04:00
Steven
1c5b44f9a1
Add loadFile parameter to ImagePool
2021-08-16 16:51:23 -04:00
Surma
eeaa19589e
Merge pull request #1120 from veluca93/jxl_05
...
Bump JPEG XL to v0.5.
2021-08-14 09:23:04 +01:00
Luca Versari
35b8c56f1a
Bump JPEG XL to v0.5.
2021-08-13 23:27:44 +02:00
Surma
816d1f92fd
Merge pull request #1110 from styfle/libsquoosh-ts-remaining
2021-08-10 12:38:11 +01:00