Commit f47ad1f
authored
feat(ext/canvas): support gif, webp for
# Summary
continues from #25517
The PR(#28470) gave us a chance to
reconsider supporting gif and webp, which we had previously abandoned.
I can also confirm that there is demand for webp at least.
#25517 (comment)
## build size
on main at 1146973
```bash
% cargo build --release --target-dir "target/$(git rev-parse --abbrev-ref HEAD)-$(git rev-parse --short HEAD)"
...
% ls -l target/main-1146973cd/release/deno
-rwxr-xr-x 1 user 46682944 132048656 Nov 25 14:53 target/main-1146973cd/release/deno
-> 132.048656 mb
```
this PR
```bash
% cargo build --release --target-dir "target/$(git rev-parse --abbrev-ref HEAD)-$(git rev-parse --short HEAD)"
...
% ls -l target/feat-webp-gif-2485a575d/release/deno
-rwxr-xr-x 1 user 46682944 132311168 Nov 25 17:14 target/feat-webp-gif-2485a575d/release/deno
-> 132.311168 mb
```
about 263kb largercreateImageBitmap (#31402)1 parent 658638b commit f47ad1f
File tree
5 files changed
+74
-63
lines changed- ext/image
- tests/unit
5 files changed
+74
-63
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | 241 | | |
250 | 242 | | |
251 | 243 | | |
252 | 244 | | |
253 | 245 | | |
254 | 246 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | 247 | | |
264 | 248 | | |
265 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 128 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
142 | 139 | | |
143 | 140 | | |
144 | 141 | | |
| |||
165 | 162 | | |
166 | 163 | | |
167 | 164 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 165 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | | - | |
| 253 | + | |
256 | 254 | | |
257 | 255 | | |
258 | | - | |
| 256 | + | |
259 | 257 | | |
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
263 | 261 | | |
264 | | - | |
265 | | - | |
266 | | - | |
| 262 | + | |
267 | 263 | | |
268 | 264 | | |
269 | | - | |
| 265 | + | |
270 | 266 | | |
271 | 267 | | |
272 | 268 | | |
| |||
324 | 320 | | |
325 | 321 | | |
326 | 322 | | |
327 | | - | |
328 | | - | |
329 | | - | |
| 323 | + | |
330 | 324 | | |
331 | 325 | | |
332 | | - | |
| 326 | + | |
333 | 327 | | |
334 | 328 | | |
335 | 329 | | |
| |||
339 | 333 | | |
340 | 334 | | |
341 | 335 | | |
342 | | - | |
343 | | - | |
344 | | - | |
| 336 | + | |
345 | 337 | | |
346 | 338 | | |
347 | | - | |
| 339 | + | |
348 | 340 | | |
349 | 341 | | |
350 | 342 | | |
| |||
0 commit comments