feat: AI-based overlay image position for editorial templates#138
feat: AI-based overlay image position for editorial templates#138recoup-coding-agent wants to merge 1 commit intomainfrom
Conversation
Use ToolLoopAgent to analyze editorial images and determine the ideal corner (top-left, top-right, bottom-left, bottom-right) for overlay placement instead of always defaulting to top-left. Co-Authored-By: Paperclip <noreply@paperclip.ing>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 7 minutes and 39 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Changes
overlayPosition.ts— shared type + coordinate calculation utilitycreateOverlayPositionAgent.ts— ToolLoopAgent that analyzes editorial imagesresolveOverlayPosition.ts— wrapper that calls the agent with fallbackbuildStaticImageArgs.ts,buildFilterComplex.ts,buildFfmpegArgs.ts,renderFinalVideo.ts— accept and useoverlayPositionparametercreateContentTask.ts— resolves overlay position before renderingTest plan
calculateOverlayCoordinates(all 4 positions + custom sizes)buildFilterComplexposition variants🤖 Generated with Claude Code
Summary by cubic
Chooses the best corner for playlist/DSP overlays on editorial images instead of always using top-left, improving subject visibility. Defaults to top-left on failure. Implements REC-67.
createOverlayPositionAgentto analyze an editorial image and returntop-left,top-right,bottom-left, orbottom-right.overlayPosition.tswith types andcalculateOverlayCoordinates; used by overlay pipelines.resolveOverlayPositionincreateContentTask, plus support inbuildFilterComplex,buildFfmpegArgs,renderFinalVideo, and newbuildStaticImageArgs.Written for commit bb50a64. Summary will update on new commits.