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

Reduce the size of the inner logo in the QR code #4746

Merged
merged 4 commits into from
Jul 8, 2024
Merged

Conversation

haileyok
Copy link
Contributor

@haileyok haileyok commented Jul 7, 2024

Why

Fixes #4740

Some of the generated QR codes cannot be scanned if the logo is too big - presumably certain combinations of data have pieces that end up underneath the logo.

For example, see:

These QR codes can indeed be scanned just fine. However, see these starter packs:

These ones cannot be scanned.

How

If we change the scale of the logo to 1 instead of 1.2, then all of the above packs do indeed work. However, it seems possible that certain data combinations may still cause problems - indeed, if we add additional data (probably unlikely, but maybe in the future?) it seems even riskier. Since we already have the logo and name at the bottom of the image, it feels okay to remove the logo entirely to ensure these work fine.

Test Plan

Test the above starter packs with this PR. They should all be scannable now instead of just the first set.

Copy link

render bot commented Jul 7, 2024

Copy link

github-actions bot commented Jul 7, 2024

Old size New size Diff
6.61 MB 6.61 MB 0 B (0.00%)

@gaearon gaearon changed the title Remove inner logo from QR code Reduce the size of the inner logo from QR code Jul 8, 2024
@gaearon gaearon changed the title Reduce the size of the inner logo from QR code Reduce the size of the inner logo in the QR code Jul 8, 2024
@gaearon gaearon merged commit d5503d1 into main Jul 8, 2024
6 checks passed
@gaearon gaearon deleted the hailey/qr-logo-scale branch July 8, 2024 15:57
estrattonbailey added a commit that referenced this pull request Jul 9, 2024
…cial-proof

* origin/main: (126 commits)
  Update README.md (#4394)
  tweak top padding external (#4755)
  change `contentVisibility` to `contain` (#4752)
  Fix RTL text rendering for display names (#4747)
  Reduce the size of the inner logo in the QR code (#4746)
  Fix misplaced '@' in RTL post meta. (#4531)
  Remove broken and void back button (#4744)
  Ensure `/start` navigates to `/starter-pack` when clicking a link internally (#4745)
  Add missing `to` in StarterPackScreen.tsx string (#4743)
  Video compression in composer (#4638)
  fix slop (#4739)
  Update stats
  Run intl:extract
  Update Japanese translation (#4665)
  Update Korean localization (#4646)
  Update Chinese Localization (#4695)
  Update catalan (#4702)
  Update Indonesian translation (#4706)
  Tweak checkmark size
  Show feedback for Follow button in interstitials (#4738)
  ...
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.

Starter Packs' QR codes do not always work on iPhone
2 participants