Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 28a9240

Browse files
authored
Merge pull request #309 from openforge/sam-improve-perf
Issues #184 and #227 -- Performance: Changing images to webp format for certain browsers
2 parents b01c132 + f9fab08 commit 28a9240

File tree

208 files changed

+2971
-4175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+2971
-4175
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,27 @@ The OpenForge.io website is built using a combination of [Stencil.js](https://st
3333
npm install
3434
```
3535

36+
#### Install the Google WebP utility from the following link:
37+
https://developers.google.com/speed/webp/docs/precompiled
38+
39+
#### Or install from the command line (Mac OS X):
40+
```
41+
brew install webp
42+
```
43+
44+
#### Make Sure .webp Images are available by running the following commands:
45+
```
46+
for file in src/assets/*.jpg; do cwebp -q 75 "$file" -o "${file%.jpg}.webp"; done
47+
```
48+
49+
```
50+
for file in src/assets/*.png; do cwebp -q 75 "$file" -o "${file%.png}.webp"; done
51+
```
52+
53+
```
54+
for file in src/assets/*.jpeg; do cwebp -q 75 "$file" -o "${file%.jpeg}.webp"; done
55+
```
56+
3657
### Running This Application
3758
```
3859
npm run dev

0 commit comments

Comments
 (0)