Skip to content

feat(thumb): change image type to NRGBA when do resize to keep transparency (#2530)#3207

Merged
HFO4 merged 1 commit intocloudreve:masterfrom
YUDONGLING:fix-avatar-with-transparency-20260117.2
Jan 23, 2026
Merged

feat(thumb): change image type to NRGBA when do resize to keep transparency (#2530)#3207
HFO4 merged 1 commit intocloudreve:masterfrom
YUDONGLING:fix-avatar-with-transparency-20260117.2

Conversation

@YUDONGLING
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request changes the image type used in the Resize function from RGBA to NRGBA to preserve transparency during image resizing operations. This is particularly important for PNG and GIF images that support alpha channels.

Changes:

  • Updated Resize function to use image.NewNRGBA instead of image.NewRGBA to maintain alpha channel transparency during resize operations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HFO4 HFO4 merged commit 5b214be into cloudreve:master Jan 23, 2026
7 of 8 checks passed
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.

3 participants