Skip to content

Commit

Permalink
update screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Feb 4, 2024
1 parent 8fb3b72 commit 2bc26fe
Show file tree
Hide file tree
Showing 9 changed files with 856 additions and 13 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
[![Jersey City Protected Bike Lane + Ward Map](./public/jc-pbl-map.png)](https://map.bikejc.org)
[![Jersey City Protected Bike Lane + Ward Map](./public/screenshots/pbls.png)](https://map.bikejc.org)

## Interactive version: [map.bikejc.org](https://map.bikejc.org)

### Compared with the full road network <a id="pbls-vs-roads"></a>

![](public/pbls-roads.gif)
![](public/screenshots/pbls-vs-roads.gif)

## Scratchwork

### Process screenshots

### Regenerate screenshots
```bash
for f in 1-pbls.png 2-roads.png; do
convert -strip -crop 2240x2660+982+238 orig/$f cropped/$f
done
node screenshots.js
```
Outputs to [public/screenshots](./public/screenshots).

### Make gif
```bash
convert -resize 50% -delay 150 -loop 0 cropped/1-pbls.png cropped/2-roads.png pbls-roads.gif
cd public/screenshots
convert -delay 150 -loop 0 pbls.png pbls-roads.png pbls-vs-roads.gif
```

### Fetch Data
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"devDependencies": {
"@types/node": "^18.0.4",
"@types/react": "^18.2.0",
"commander": "^12.0.0",
"puppeteer": "^21.11.0",
"typescript": "^4.7.4"
}
}
Loading

0 comments on commit 2bc26fe

Please sign in to comment.