Skip to content

Commit fc104c7

Browse files
committed
fix: fetch highres meetup cover image in set-next-meetup skill
The og:image meta tag points at a low-res share variant, which produced a small, blurry NextMeetup.jpg. Rewrite the URL size prefix to highres_ to download the full-resolution event photo.
1 parent 0154328 commit fc104c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.claude/skills/set-next-meetup/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ Configure the homepage **Next Meetup** section (`app-meetup`) for a specific Mee
3030
- English (`en.json`): `"<Weekday>, <D> <Month> <YYYY>, <h:MM AM/PM>"` — e.g. `Tuesday, 14 July 2026, 6:30 PM`.
3131

3232
3. **Update the image.** Always replace `public/images/homepage/NextMeetup.jpg`.
33-
- If the user attached an image for this event, use that source. Otherwise download the event's own cover image from the Meetup page (its `og:image`):
33+
- If the user attached an image for this event, use that source. Otherwise download the event's own cover image from the Meetup page. The `og:image` meta tag points at a low-res share variant (e.g. `.../600_<id>.jpeg`); Meetup stores the same photo at full resolution under a `highres_` prefix, so rewrite the size prefix to `highres_` before downloading:
3434
```bash
3535
IMAGE_URL=$(curl -sL "<event-url>" | grep -oP '<meta property="og:image"\s+content="\K[^"]+' | head -1)
36+
IMAGE_URL=$(echo "$IMAGE_URL" | sed -E 's#/[0-9]+_([0-9]+\.[a-z]+)#/highres_\1#')
3637
curl -sL "$IMAGE_URL" -o /tmp/next-meetup-source
3738
```
3839
- Convert the chosen source to JPG, overwrite the live file, and read back the dimensions:

0 commit comments

Comments
 (0)