browsertime 17.14.0 → 17.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/lib/support/images/index.js +11 -12
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
## 17.14.1 - 2022-07-31
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
* Default jimp resize didn't handle large values (2000) when running in Docker AMD on a ARM machine so changing to another algorithm (HERMITE) [#1977](https://github.com/sitespeedio/browsertime/pull/1977).
|
|
7
|
+
|
|
3
8
|
## 17.14.0 - 2022-07-24
|
|
4
9
|
|
|
5
10
|
### Added
|
|
@@ -32,12 +32,11 @@ export async function savePng(
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
if (jimp) {
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
});
|
|
35
|
+
const image = await jimp.default.read(data);
|
|
36
|
+
const buffer = await image
|
|
37
|
+
.deflateLevel(config.png.compressionLevel)
|
|
38
|
+
.scaleToFit(config.maxSize, config.maxSize, jimp.default.RESIZE_HERMITE)
|
|
39
|
+
.getBufferAsync('image/png');
|
|
41
40
|
|
|
42
41
|
return storageManager.writeData(
|
|
43
42
|
`${name}.png`,
|
|
@@ -62,12 +61,12 @@ export async function saveJpg(
|
|
|
62
61
|
jimp = undefined;
|
|
63
62
|
}
|
|
64
63
|
if (jimp) {
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
const image = await jimp.default.read(data);
|
|
65
|
+
// https://github.com/sitespeedio/sitespeed.io/issues/3922
|
|
66
|
+
const buffer = await image
|
|
67
|
+
.quality(config.jpg.quality)
|
|
68
|
+
.scaleToFit(config.maxSize, config.maxSize, jimp.default.RESIZE_HERMITE)
|
|
69
|
+
.getBufferAsync('image/jpeg');
|
|
71
70
|
return storageManager.writeData(
|
|
72
71
|
`${name}.jpg`,
|
|
73
72
|
buffer,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browsertime",
|
|
3
3
|
"description": "Get performance metrics from your web page using Browsertime.",
|
|
4
|
-
"version": "17.14.
|
|
4
|
+
"version": "17.14.1",
|
|
5
5
|
"bin": "./bin/browsertime.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"dependencies": {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"@sitespeed.io/tracium": "0.3.3",
|
|
15
15
|
"ff-test-bidi-har-export": "0.0.11",
|
|
16
16
|
"btoa": "1.2.1",
|
|
17
|
-
"chrome-har": "0.13.
|
|
18
|
-
"chrome-remote-interface": "0.
|
|
19
|
-
"dayjs": "1.11.
|
|
20
|
-
"execa": "7.
|
|
17
|
+
"chrome-har": "0.13.2",
|
|
18
|
+
"chrome-remote-interface": "0.33.0",
|
|
19
|
+
"dayjs": "1.11.9",
|
|
20
|
+
"execa": "7.2.0",
|
|
21
21
|
"fast-stats": "0.0.6",
|
|
22
22
|
"find-up": "6.3.0",
|
|
23
23
|
"get-port": "6.1.2",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"yargs": "17.7.2"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"jimp": "0.22.
|
|
36
|
+
"jimp": "0.22.10"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"ava": "5.1.0",
|