Skip to content

Seqdiag/Blockdiag fails with Pillow 10.0.0 #63

@rdante-dhar

Description

@rdante-dhar

Looks like the seqdiag/blockdiag uses ImageDraw.textsize() but it seems it was removed with Pillow 10.0.0
Check here:
https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#font-size-and-offset-methods

Because of this we get the following exceptions:

File "/venv/lib/python3.11/site-packages/blockdiag/imagedraw/png.py", line 276, in textlinesize size = self.draw.textsize(string, font=None) ^^^^^^^^^^^^^^^^^^ AttributeError: 'ImageDraw' object has no attribute 'textsize'

Note:- This works if we revert to Pillow version 9.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions