The image provider imports Pillow inside the image operation and converts a missing import into an explicit UnsupportedFeature result (faker/providers/misc/init.py:504-509).The test suite also explicitly checks this fallback behavior when Pillow is not installed (tests/providers/test_misc.py:396-400).
Given this design, should Pillow be formally added to extras_require section? For example: pip install faker[image]. This matches the current lazy-import pattern and helps users avoid runtime surprises.
The image provider imports Pillow inside the image operation and converts a missing import into an explicit UnsupportedFeature result (faker/providers/misc/init.py:504-509).The test suite also explicitly checks this fallback behavior when Pillow is not installed (tests/providers/test_misc.py:396-400).
Given this design, should Pillow be formally added to extras_require section? For example: pip install faker[image]. This matches the current lazy-import pattern and helps users avoid runtime surprises.