Varun Chawla
f708c00527
Fix UnboundLocalError in _border for invalid tuple lengths and document rgba() color format
...
The _border helper in ImageOps raised UnboundLocalError when given a tuple
with a length other than 2 or 4 (e.g. 1-tuple or 3-tuple). This changes
it to raise a clear ValueError instead.
Also adds documentation for the rgba() color format in ImageColor, which
was supported in code and tested but missing from the docs.
2026-02-13 19:38:48 -08:00
Hugo van Kemenade
348589a367
Docs: use sentence case for headers ( #8914 )
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-04-21 19:03:31 +10:00
Andrew Murray
d682c18ded
Use "gray" more consistently
2023-10-19 19:12:01 +11:00
Andrew Murray
e64d62e568
Adjusted formatting [ci skip]
2021-02-09 19:47:40 +11:00
Andrew Murray
6c0af0fdfb
Removed ImageDraw reference
2021-02-09 19:46:07 +11:00
Andrew Murray
e4a8783e88
Changed example value to avoid using "a"
2021-02-09 19:44:51 +11:00
Andrew Murray
497f9e2764
Fixed unexpected indentation [ci skip]
2021-01-08 00:06:18 +11:00
Esteban Gehring
930059814d
docs: add alpha channel to supported hex color specifiers
2021-01-04 13:42:15 +01:00
nulano
2761a02d13
fix module references
...
(cherry picked from commit b077850baa )
2020-06-27 15:33:55 +02:00
Andrew Murray
3d82672404
Added getrgb hsb color string
2018-05-31 06:14:29 +10:00
Andrew Murray
b50f63430f
Added getrgb hsv color string
2018-05-31 06:13:22 +10:00
Andrew Murray
fc3c4c0119
Corrected reference to method
2018-02-14 20:09:00 +11:00
Andrew Murray
1f40684743
Improved documentation
2017-12-30 21:23:04 +11:00
Stephen Johnson
20b9d9774a
Fully document PIL.ImageOps; fix some :py:mod: markup
2013-10-12 22:17:45 -07:00
Stephen Johnson
5c9329d5ba
Fully document PIL.ImageDraw
2013-10-12 00:52:01 -07:00
Stephen Johnson
88c700f3b2
Fully document PIL.ImageColor
2013-10-11 22:54:24 -07:00