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

preferred-decoder option #193

Merged
merged 1 commit into from
Jan 6, 2024
Merged

preferred-decoder option #193

merged 1 commit into from
Jan 6, 2024

Conversation

bigcat88
Copy link
Owner

@bigcat88 bigcat88 commented Jan 6, 2024

Ref: #154

Changes proposed in this pull request:

  • Implemented PREFERRED_DECODER in the same way, as PREFERRED_ENCODER in Preferred-encoder global option. #192
  • PREFERRED_ENCODER now does not raise RuntimeError when specified encoder is not found.
  • Added support of preferred_encoder and preferred_decoder keys to "register_avif_opener"/"register_heif_opener" function to easier set it in WSGI applications.

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
Copy link

codecov bot commented Jan 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (17e7bb2) 100.00% compared to head (a26c28b) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #193   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          912       923   +11     
=========================================
+ Hits           912       923   +11     
Files Coverage Δ
pillow_heif/as_plugin.py 100.00% <100.00%> (ø)
pillow_heif/heif.py 100.00% <100.00%> (ø)
pillow_heif/options.py 100.00% <100.00%> (ø)

@bigcat88 bigcat88 merged commit e0815ad into master Jan 6, 2024
27 checks passed
@bigcat88 bigcat88 deleted the preferred-decoder branch January 6, 2024 20:49
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.

None yet

1 participant