Skip to content

fix: Update img proxy env to be consistent with prod #732

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

itslenny
Copy link
Contributor

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

A couple environment variables used by imgproxy in prod are not included when running locally. This results in inconsistent behavior when resizing images locally compared to prod

What is the new behavior?

Include values for IMGPROXY_PRESETS and IMGPROXY_FORMAT_QUALITY that match the settings used in prod

Additional context

Specifically, the default behavior for resize when providing only one dimension (height OR width) is to use the resize type of "cover" which will not work if a default preset is not defined. This causes very different behavior than prod which can cause a frustrating experience for users.

This change resolve the issue explained in this discussion: https://github.com/orgs/supabase/discussions/37316

@coveralls
Copy link

Pull Request Test Coverage Report for Build 16456212330

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 76.953%

Totals Coverage Status
Change from base Build 16452989805: 0.01%
Covered Lines: 20551
Relevant Lines: 26475

💛 - Coveralls

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