https://github.com/stestagg/hotwheel-poster
https://github.com/stestagg/hotwheel-poster
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stestagg/hotwheel-poster
- Owner: stestagg
- Created: 2026-03-04T21:29:30.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-03-04T21:51:24.000Z (5 months ago)
- Last Synced: 2026-03-05T03:38:04.042Z (5 months ago)
- Language: Python
- Size: 63.7 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Hot Wheels Poster Group Extractor
This repo includes `extract_poster_groups.py`, a script that:
1. Loads a source poster PDF.
2. Disables background/crop optional-content layers (when present, e.g. `BACKGROUND`).
3. Locates each group using the text anchor `MINI COLLECTION`.
4. Computes 3×4 crop bounds from anchor positions.
5. Exports 12 cropped PDFs into an output folder.
### Requirements
- `uv` installed: https://docs.astral.sh/uv/
### Run (uv)
```bash
uv run extract_poster_groups.py posters/HW_Poster_WAVE_1_2024_HiRes-1.pdf \
--output-dir output/group_pdfs
```
`uv` reads dependencies directly from `extract_poster_groups.py` and creates an isolated environment automatically.
### Optional (pip)
```bash
python -m pip install -r requirements.txt
python extract_poster_groups.py posters/HW_Poster_WAVE_1_2024_HiRes-1.pdf \
--output-dir output/group_pdfs
```
### Output
For this poster, the script writes 12 files like:
- `group_01_r1c1.pdf`
- ...
- `group_12_r4c3.pdf`
into `output/group_pdfs/`.