Commit 5c7612c
committed
fix for Pillow>=10.0
this will close
File /opt/ros/noetic/share/jsk_perception/node_scripts/draw_rects.py, line 159, in draw_rects_callback
img = put_text_to_image(
File /opt/ros/noetic/lib/python3/dist-packages/jsk_recognition_utils/put_text.py, line 43, in put_text_to_image
text_w, text_h = dummy_draw.textsize(text, font=pil_font)
AttributeError: 'ImageDraw' object has no attribute 'textsize'
when user install Pillow>=10.0 locally1 parent 6ce2015 commit 5c7612c
File tree
1 file changed
+6
-1
lines changed- jsk_recognition_utils/python/jsk_recognition_utils
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
0 commit comments