Skip to content

fix: gaussian blur vertical pass - #3682

Merged
Svarov-RZM merged 1 commit into
synfig:masterfrom
omda777:fix-gaussian-blur
Feb 14, 2026
Merged

Svarov-RZM merged 1 commit into
synfig:masterfrom
omda777:fix-gaussian-blur

Conversation

@omda777

@omda777 omda777 commented Feb 5, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3631

The object was being cut off because the vertical blur pass reused the row-based blur logic instead of applying the correct vertical behavior.

When X = 20 and Y = 5

before :

image

After :

image



when X =0 and Y = 15

befor :

The blur effect only becomes visible when Y ≥ 21.2; values below this produce no blur.
image

After :

image

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @omda777, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a critical bug in the Gaussian blur implementation, specifically concerning the vertical pass. By rectifying the logic that previously misused row-based patterns for vertical blurring, it ensures that objects are blurred correctly without being truncated and that the blur effect is consistently applied across varying parameters.

Highlights

  • Gaussian Blur Vertical Pass Fix: Corrected an issue where the vertical blur pass was incorrectly applying row-based blur logic, leading to objects being cut off or blur not being applied as expected. This ensures proper vertical blurring behavior.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • synfig-core/src/synfig/rendering/software/function/blur.cpp
    • Corrected the pattern used for the vertical blur pass from 'arr_row_pattern' to 'arr_col_pattern' to ensure proper vertical blurring.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request addresses a bug in the Gaussian blur implementation where the vertical blur pass was incorrectly using the horizontal blur pattern. The change correctly substitutes arr_row_pattern with arr_col_pattern for the vertical pass. This fix is correct and resolves the rendering issue described in the pull request, where objects were being cut off or not blurred correctly depending on the blur radius. The change is simple, targeted, and effective.

@BobSynfig
BobSynfig requested a review from Svarov-RZM February 8, 2026 08:57
@Svarov-RZM Svarov-RZM assigned Svarov-RZM and unassigned Svarov-RZM Feb 9, 2026
@Svarov-RZM

Copy link
Copy Markdown
Contributor

Yeah, I'll take a look. Changes like that are quite scary because they can fix one thing but introduce a regression somewhere else. I will handle it on weekends, most likely, you know me.

@synfig synfig deleted a comment from github-actions Bot Feb 12, 2026
@synfig synfig deleted a comment from github-actions Bot Feb 12, 2026
@ice0

ice0 commented Feb 12, 2026

Copy link
Copy Markdown
Collaborator

Yes, looks like copy-paste error.

@Svarov-RZM
Svarov-RZM merged commit 32ad9e0 into synfig:master Feb 14, 2026
13 of 14 checks passed
@Svarov-RZM

Copy link
Copy Markdown
Contributor

Alright, the PR fixes blur getting cut off. Other tests show that blur computes a bit different but in a better way, results are more precise, the blur is distributed more even:
BlurTest

You can spot it on star layers specifically.

The PR's merged, thank you!

@omda777
omda777 deleted the fix-gaussian-blur branch February 14, 2026 09:32
morevnaproject pushed a commit to morevnaproject-org/synfig that referenced this pull request Mar 25, 2026
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.

The object gets cut off when Gaussian blur is applied.

3 participants