Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with pillow 10.0.1 #221

Closed
Nadern96 opened this issue Feb 26, 2024 · 10 comments
Closed

Incompatibility with pillow 10.0.1 #221

Nadern96 opened this issue Feb 26, 2024 · 10 comments

Comments

@Nadern96
Copy link

Nadern96 commented Feb 26, 2024

        barcode_format = barcode.get_barcode_class('code128')
        code = barcode_format(input, writer=ImageWriter(), )
        code_path = BASE_PATH + 'code'
        path = code.save(code_path, {"font_size": font_size})
width, height = font.getsize(subtext)\nAttributeError: 'FreeTypeFont' object has no attribute 'getsize'
@WhyNotHugo
Copy link
Owner

WhyNotHugo commented Feb 27, 2024

Which version are you using?

@richardmarktl
Copy link

richardmarktl commented Apr 4, 2024

The error AttributeError: 'FreeTypeFont' object has no attribute 'getsize' occurs because Pillow 10, removed the method getsize.

@WhyNotHugo
Copy link
Owner

WhyNotHugo commented Apr 4, 2024 via email

@richardmarktl
Copy link

richardmarktl commented Apr 4, 2024

Which version are you using?

10.3.0

@WhyNotHugo
Copy link
Owner

WhyNotHugo commented Apr 4, 2024 via email

@WhyNotHugo
Copy link
Owner

WhyNotHugo commented Apr 4, 2024 via email

@WhyNotHugo
Copy link
Owner

WhyNotHugo commented Apr 4, 2024 via email

@Nadern96
Copy link
Author

Nadern96 commented Apr 4, 2024

I upgraded bar-code package to 0.15.1, also upgraded pillow to 10.3.0, it seems to be working

@WhyNotHugo
Copy link
Owner

WhyNotHugo commented Apr 4, 2024 via email

@richardmarktl
Copy link

richardmarktl commented Apr 5, 2024 via email

@WhyNotHugo WhyNotHugo closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants