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

feat: new downsample mode #2760

Closed
wants to merge 4 commits into from

Conversation

sunnylqm
Copy link
Contributor

@sunnylqm sunnylqm commented Feb 25, 2024

Motivation (required)

Introduce a new method, setDownsampleMode(DownsampleMode), to allow downstream libraries to disable downsampling but not break other existing use cases. Fixes #2397

Test Plan (required)

Test a large remote image like #2397 (comment)
With default config or set downsampleMode to AUTO/ALWAYS, it should be downsampled/blurred like how it behaves today.
Change it to NEVER it should NOT be downsampled.

@facebook-github-bot
Copy link
Contributor

@yungsters has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@sunnylqm has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@yungsters has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@sunnylqm has updated the pull request. You must reimport the pull request before landing.

@sunnylqm
Copy link
Contributor Author

sunnylqm commented Mar 7, 2024

@yungsters any more concerns?

@yungsters
Copy link

I'm currently waiting for a colleague to take a look, but they're currently on vacation.

No concerns from me, but I'll report back as soon as we have progress.

@facebook-github-bot
Copy link
Contributor

@yungsters merged this pull request in 0d78d83.

@yungsters
Copy link

@sunnylqm, this has been merged.

Thanks again for advocating for this improvement and for contributing this pull request that takes into consideration backward compatibility!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Low image quality using <Image/> component on RN > = 0.57 (Fresco >= 1.10.0)
3 participants