Skip to content

scripts: image .ini keys crop and radius (todmvi -k, -r) - #328

Merged
JohnAmadis merged 1 commit into
developfrom
feature/image-crop-radius
Oct 10, 2026
Merged

JohnAmadis merged 1 commit into
developfrom
feature/image-crop-radius

Conversation

@JaxCalder

Copy link
Copy Markdown
Contributor

Summary

Two new keys for an image's .ini, passed to todmvi in the asset conversion:

  • crop = X,Y,W,H: keeps only that part of the image, after scaling and blurring (what a box shows). Passed as todmvi -k.
  • radius = PIXELS: rounds its corners after crop, transparent outside them. Passed as todmvi -r.

todmvs writes these for an image in a rounded box, for example a cover in a round frame. docs/cmake-functions.md lists them with the other keys.

Testing

scripts/CMakeLists.txt adds the two keys to _dmod_image_option, with value checks like the other keys. I didn't run this CMake function: the car HMI's assets were converted with the same todmvi options through a script of mine, and they're on the board.

Needs choco-technologies/todmvi#3 (-k, -r).

🤖 Generated with Claude Code

What a box shows of an image (crop = X,Y,W,H, after scaling and blurring)
and its corners rounded (radius = pixels, transparent outside them) - an
image in a rounded box: todmvs writes them for a cover in a round frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JohnAmadis
JohnAmadis merged commit e81faa8 into develop Oct 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants