Skip to content

Comments

refactor: extract _trim_and_convert from render_to_img#19

Merged
drmingdrmer merged 1 commit intomasterfrom
fix/render-to-img-too-long
Feb 22, 2026
Merged

refactor: extract _trim_and_convert from render_to_img#19
drmingdrmer merged 1 commit intomasterfrom
fix/render-to-img-too-long

Conversation

@drmingdrmer
Copy link
Contributor

Summary

  • Extract image trimming and format conversion into _trim_and_convert helper
  • render_to_img now focused on orchestration (~30 lines vs ~80)
  • No behavior change

Test plan

  • make test - all 14 tests pass
  • make lint - all checks pass

Move image trimming and format conversion into a dedicated helper,
reducing render_to_img to ~30 lines focused on orchestration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@drmingdrmer drmingdrmer merged commit 9a0e9bd into master Feb 22, 2026
12 checks passed
@drmingdrmer drmingdrmer deleted the fix/render-to-img-too-long branch February 22, 2026 12:24
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.

1 participant