codingjoe / django-pictures

Responsive cross-browser image library using modern codes like AVIF & WebP
BSD 2-Clause "Simplified" License
248 stars 20 forks source link

Enable swapping the image processor via a setting #114

Closed codingjoe closed 1 year ago

codingjoe commented 1 year ago

To simplify customizations the image processort can be swapped. Previously, it was necessary to override the PictureFieldFile. Now, all that needs to be done is setting a custom value for the PICTURES["PROCESSOR"] setting.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (7088aac) 100.00% compared to head (47a6a29) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #114 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 13 13 Lines 446 446 ========================================= Hits 446 446 ``` | Flag | Coverage Δ | | |---|---|---| | celery | `85.65% <100.00%> (ø)` | | | cleanup | `86.32% <100.00%> (ø)` | | | dj4.0 | `86.32% <100.00%> (ø)` | | | dj4.1 | `86.32% <100.00%> (ø)` | | | dramatiq | `85.65% <100.00%> (ø)` | | | drf | `93.94% <100.00%> (ø)` | | | macos-latest | `86.54% <100.00%> (ø)` | | | py3.10 | `86.32% <100.00%> (ø)` | | | py3.11 | `86.32% <100.00%> (ø)` | | | py3.8 | `86.32% <100.00%> (ø)` | | | py3.9 | `86.32% <100.00%> (ø)` | | | ubuntu-latest | `86.32% <100.00%> (ø)` | | | windows-latest | `78.76% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Johannes+Maron#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://app.codecov.io/gh/codingjoe/django-pictures/pull/114?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Johannes+Maron) | Coverage Δ | | |---|---|---| | [pictures/conf.py](https://app.codecov.io/gh/codingjoe/django-pictures/pull/114?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Johannes+Maron#diff-cGljdHVyZXMvY29uZi5weQ==) | `100.00% <ø> (ø)` | | | [pictures/models.py](https://app.codecov.io/gh/codingjoe/django-pictures/pull/114?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Johannes+Maron#diff-cGljdHVyZXMvbW9kZWxzLnB5) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.