Closed browniebroke closed 1 year ago
Patch coverage: 100.00%
and project coverage change: +0.88%
:tada:
Comparison is base (
e6c1414
) 87.16% compared to head (2b5fc03
) 88.05%.:exclamation: Current head 2b5fc03 differs from pull request most recent head 0d8e4cb. Consider uploading reports for the commit 0d8e4cb to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I think I've addressed all your suggestions, let me know if I missed anything.
@browniebroke you can upgrade to 0.10.0
version, thank you again for this great PR.
Thanks for the quick release after the merge, much appreciated 🙏🏻
I realized just now that RGB and RGBA formats raise an error when the image_field
option is used:
https://github.com/fabiocaccamo/django-colorfield#image_field
This happens because the color returned by get_image_background_color
(https://github.com/fabiocaccamo/django-colorfield/blob/main/colorfield/utils.py#L4) is always in HEX / HEXA format.
Right... Missed that one! I'll see if I can make a quick fix, otherwise we could fallback to disable image_field
for RGB/RGBA
If you can't do it, I will do, no problem.
It can be fixed quickly by passing the color format to get_image_background_color
method to return a color formatted in the chosen format.
name: Pull request about: Submit a pull request for this project assignees: fabiocaccamo
Describe your changes Add support for RGB and RGBA formats
Related issue https://github.com/fabiocaccamo/django-colorfield/pull/84
Checklist before requesting a review