Crop the renders to their content #17

Merged
rob merged 1 commit from docs/crop-renders into main 2026-11-16 15:21:11 +00:00
Collaborator

scripts/generate_renders.py now crops each render to its content with a 16-pixel margin, so the images fill their space in the readmes. The crop uses Pillow, which the script now needs.

The board renders are zoomed out a little before cropping, because the old ones touched the image edge.

This branch sits on top of feat/case-wordmark. Merge #16 first, and this diff reduces to the crop change and the six re-rendered images.

Tested: the script was run for all three boards and the cropped images were checked by eye.

This does not cut a release on its own.

`scripts/generate_renders.py` now crops each render to its content with a 16-pixel margin, so the images fill their space in the readmes. The crop uses Pillow, which the script now needs. The board renders are zoomed out a little before cropping, because the old ones touched the image edge. This branch sits on top of `feat/case-wordmark`. Merge #16 first, and this diff reduces to the crop change and the six re-rendered images. Tested: the script was run for all three boards and the cropped images were checked by eye. This does not cut a release on its own.
Set in Fredoka SemiBold, the wordmark font on campercan.net. The terminator's lid is too small for it to print.
The transparent border made them small when shown in a readme.
rob force-pushed docs/crop-renders from 1aad25d4a5 to acd337b961 2026-11-16 15:21:08 +00:00 Compare
rob merged commit c0627bcf46 into main 2026-11-16 15:21:11 +00:00
rob deleted branch docs/crop-renders 2026-11-16 15:21:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
CamperCan/hardware!17
No description provided.