adafruit / adafruit/Adafruit_CircuitPython_RGB_Display

Code is using deprecated getsize() function

Open
#120 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
143
Forks
53
PR merge metrics
No merged PRs in 30d

Description

The line
https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display/blob/7ecfffe3deac982f8698e72da7033b836c07ecd5/examples/rgb_display_minipitftstats.py#L90 plus a few just below it use the deprecated function getsize() which has been removed in the latest release of Pillow. Using getbbox() instead and then using [3] instead of [1] seems like a reasonable workaround

Contributor guide

No contributing guide indexed for this repository

Research direction

The affected file is examples/rgb_display_minipitftstats.py, starting at the linked line 90 and the nearby lines that call getsize(). Review those calls and Pillow’s getbbox() behavior first. Done means the example no longer relies on the removed function and remains valid with current Pillow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.