-
Notifications
You must be signed in to change notification settings - Fork 6
Crossfade slideshow effect #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughUpdates Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@PhotoLocator/VideoTransformCommands.cs`:
- Around line 692-693: The Crossfade case is inconsistently handled: ProcessArgs
skips adding the scale filter for Crossfade but StabilizeArgs still adds scale,
causing mismatched vidstab transforms; update the logic in the StabilizeArgs
construction (the code path that contains filters.Add($"scale={ScaleTo}") and
related use of IsScaleChecked, SelectedEffect.Content, ZoomEffect and Crossfade)
to mirror ProcessArgs by skipping adding the scale filter when
SelectedEffect.Content == Crossfade (i.e., only append $"scale={ScaleTo}" when
IsScaleChecked is true AND SelectedEffect.Content is neither ZoomEffect nor
Crossfade).
| if (IsScaleChecked && SelectedEffect.Content != ZoomEffect && SelectedEffect.Content != Crossfade) | ||
| filters.Add($"scale={ScaleTo}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep vidstab detect/transform scale filters consistent for Crossfade.
ProcessArgs now skips scale for Crossfade, but StabilizeArgs still applies it, which can yield incorrect transforms when stabilization is enabled.
🔧 Suggested fix
- if (IsScaleChecked && SelectedEffect.Content != ZoomEffect)
+ if (IsScaleChecked && SelectedEffect.Content != ZoomEffect && SelectedEffect.Content != Crossfade)
filters.Add($"scale={ScaleTo}");🤖 Prompt for AI Agents
In `@PhotoLocator/VideoTransformCommands.cs` around lines 692 - 693, The Crossfade
case is inconsistently handled: ProcessArgs skips adding the scale filter for
Crossfade but StabilizeArgs still adds scale, causing mismatched vidstab
transforms; update the logic in the StabilizeArgs construction (the code path
that contains filters.Add($"scale={ScaleTo}") and related use of IsScaleChecked,
SelectedEffect.Content, ZoomEffect and Crossfade) to mirror ProcessArgs by
skipping adding the scale filter when SelectedEffect.Content == Crossfade (i.e.,
only append $"scale={ScaleTo}" when IsScaleChecked is true AND
SelectedEffect.Content is neither ZoomEffect nor Crossfade).
Summary by CodeRabbit
New Features
Bug Fixes
Style
✏️ Tip: You can customize this high-level summary in your review settings.