Skip to content

add Pillow as an optional dependency #2441

Description

@suliuzh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions