GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Behavior changes] Add blend mode to UIImage+Transform tint color API, default blend mode changed to sourceIn by dreampiggy · Pull Request #3749 · SDWebImage/SDWebImage

Conversation

@dreampiggy

@dreampiggy dreampiggy commented Sep 3, 2024

Copy link
Copy Markdown
Contributor

New Pull Request Checklist

  • I have read and understood the CONTRIBUTING guide

  • I have read the Documentation

  • I have searched for a similar pull request in the project and found none

  • I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

  • I have added the required tests to prove the fix/feature I am adding

  • I have updated the documentation (if necessary)

  • I have run the tests and they pass

  • I have run the lint and it passes (pod lib lint)

This merge request fixes / refers to the following issues: ...

Pull Request Description

  1. Also works for CIFilter variant
  2. Added blend mode to transformer API as well

This close #3748

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dreampiggy dreampiggy mentioned this pull request Sep 3, 2024
Fix alpha not applying to tinted image #3748
Closed
5 of 8 tasks
Naveen-C-Ramachandrappa
Naveen-C-Ramachandrappa approved these changes Sep 6, 2024
View reviewed changes
@dreampiggy

dreampiggy commented Sep 26, 2024

Copy link
Copy Markdown
Contributor Author

There are still some todo in some test case, I'll fix it and merge later

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dreampiggy
dreampiggy force-pushed the feature/blend_mode branch 2 times, most recently from fba7e54 to e4dd492 Compare October 8, 2024 08:44
@dreampiggy dreampiggy added this to the 5.20.0 milestone Oct 8, 2024
@dreampiggy dreampiggy added the Behavior Changes label Oct 8, 2024
@dreampiggy

dreampiggy commented Oct 8, 2024

Copy link
Copy Markdown
Contributor Author

Introduce the behavior changes:

The default blend mode changed from sourceAtop to sourceIn, match UIKit's behavior: https://developer.apple.com/documentation/uikit/uiimage/3327300-imagewithtintcolor

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dreampiggy dreampiggy changed the title Add blend mode to UIImage+Transform tint color API [Behavior changes] Add blend mode to UIImage+Transform tint color API, default blend mode changed to sourceIn Oct 8, 2024
@dreampiggy
dreampiggy force-pushed the feature/blend_mode branch 2 times, most recently from 3686d56 to 92ee70c Compare October 8, 2024 09:20
dreampiggy added 3 commits October 8, 2024 17:40
@dreampiggy
Add blend mode to UIImage+Transform tint color API
0993718
Also works for CIFilter variant
@dreampiggy
Added the blend mode to transformer API as well
3c89a09
Update unit tests
@dreampiggy
Fix some CIFilter implementation
7892f4c
@dreampiggy
dreampiggy force-pushed the feature/blend_mode branch from 92ee70c to cf78e7e Compare October 8, 2024 09:41
@dreampiggy
Behavior changes: change the default tint transformer to use `sourceI…
05e1840
…n` instead of `sourceAtop`

This matches the Apple UIKit's naming and behavior
@dreampiggy
dreampiggy force-pushed the feature/blend_mode branch from cf78e7e to 05e1840 Compare October 8, 2024 11:22
@dreampiggy
dreampiggy merged commit d573278 into SDWebImage:master Oct 8, 2024
@dreampiggy
dreampiggy deleted the feature/blend_mode branch October 8, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@Naveen-C-Ramachandrappa Naveen-C-Ramachandrappa Naveen-C-Ramachandrappa approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

Behavior Changes

Projects

None yet

Milestone

5.20.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@dreampiggy @Naveen-C-Ramachandrappa
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.