Skip to content

Commit 34f25a4

Browse files
authored
Merge pull request #28 from kyoto-tech/pic
image optimization
2 parents 6e4983e + 4d03355 commit 34f25a4

File tree

14 files changed

+521
-5
lines changed

14 files changed

+521
-5
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"optimizedAt": "2025-12-02T03:07:11.907Z",
3+
"rawPath": "assets/raw-images/kyoto-tech-meetup-hack-day.jpg",
4+
"outputPath": "public/images/kyoto-tech-meetup-hack-day.jpg",
5+
"targetFormat": "jpeg",
6+
"targetWidth": 1600,
7+
"sizeBytes": 259900
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"optimizedAt": "2025-12-02T03:07:12.311Z",
3+
"rawPath": "assets/raw-images/og/kyoto-tech-meetup.png",
4+
"outputPath": "public/images/og/kyoto-tech-meetup.png",
5+
"targetFormat": "png",
6+
"targetWidth": 1600,
7+
"sizeBytes": 1078159
8+
}
3.37 MB
Loading
File renamed without changes.

package-lock.json

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
"astro": "astro",
77
"astrocheck": "astro check",
88
"build": "astro build",
9-
"check": "npm run lint; npm run tsc; npm run astrocheck; npm run knip",
9+
"check": "npm run lint; npm run tsc; npm run astrocheck; npm run images:check; npm run knip",
1010
"dev": "astro dev",
11+
"images:optimize": "node scripts/optimize-images.mjs",
12+
"images:check": "node scripts/optimize-images.mjs --check",
1113
"knip": "knip",
1214
"lint": "eslint . --ext .js,.mjs,.ts,.tsx,.astro --no-warn-ignored",
1315
"preview": "astro preview",
@@ -36,6 +38,7 @@
3638
"eslint-plugin-astro": "^1.5.0",
3739
"eslint-plugin-jsx-a11y": "^6.10.2",
3840
"knip": "^5.70.1",
41+
"sharp": "^0.34.5",
3942
"typescript": "^5.9.3"
4043
}
4144
}
254 KB
Loading
1.03 MB
Loading

0 commit comments

Comments
 (0)