Skip to content

Conversation

@zccrs
Copy link

@zccrs zccrs commented Jun 12, 2025

  1. Fixed an issue where the opacity parameter was ineffective when no background_image was specified. This was because chop_image_v2 was converting the shadow image to RGB format, discarding the alpha channel. Consequently, shadows appeared too dark when the background was transparent.
  2. Introduced chop_image_v3 which preserves alpha channel if no background image is specified.
  3. Modified DropShadowV3 to use chop_image_v3 and pass flag about background presence.
  4. This change ensures that opacity is correctly applied even with transparent backgrounds, resulting in more accurate and visually appealing shadow effects.

1. Fixed an issue where the `opacity` parameter was ineffective when
no `background_image` was specified. This was because `chop_image_v2`
was converting the shadow image to RGB format, discarding the alpha
channel. Consequently, shadows appeared too dark when the background
was transparent.
2. Introduced `chop_image_v3` which preserves alpha channel if no
background image is specified.
3. Modified `DropShadowV3` to use `chop_image_v3` and pass flag about
background presence.
4. This change ensures that opacity is correctly applied even with
transparent backgrounds, resulting in more accurate and visually
appealing shadow effects.
@zccrs
Copy link
Author

zccrs commented Jul 17, 2025

@chflame163 Hello, can you review this patch?

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