Skip to content
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

Fix stickers dropped pasted and picked from gallery #2535

Merged
merged 7 commits into from
Jan 21, 2025

Conversation

Amzd
Copy link
Collaborator

@Amzd Amzd commented Jan 18, 2025

This uses the transparency logic from #2258 and sends image as sticker when they come from anywhere, not just pasted.

Also prioritize webP data in dropped items to prevent transparency loss when webP and JPEG are provided by drag and drop.

That PR mentioned dropping was unreliable which I think happened because sometimes the drop provides a webP which was not supported at all previously.

It also mentioned a sometimes black background which was either the system providing both JPEG and webP and Delta Chat choosing JPEG which does not have transparency OR the dropped image was too big core resized it and lost transparency (deltachat/deltachat-core-rust#6447).

@Amzd Amzd marked this pull request as ready for review January 18, 2025 15:03
@Amzd Amzd requested a review from r10s January 20, 2025 19:41
Copy link
Member

@r10s r10s left a comment

Choose a reason for hiding this comment

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

code lgtm, one comment wrt the comment and scaling.

also: does this close one of #2304 or #2254 or even both?

Co-authored-by: bjoern <[email protected]>
@Amzd Amzd merged commit ca6098a into deltachat:main Jan 21, 2025
1 check 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.

2 participants