Commit Graph

3952 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
bc6c973e2d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-10-12 16:19:24 +00:00
REDxEYE
6dd565b4a3 Merge remote-tracking branch 'pillow/main' into improved_dds
# Conflicts:
#	Tests/test_file_dds.py
#	src/PIL/DdsImagePlugin.py
2023-10-12 19:15:06 +03:00
REDxEYE
a5dde8b1c4 Apply suggestion for PR 2023-10-12 19:09:28 +03:00
Andrew Murray
7319d86328 Catch struct.error from truncated EXIF when reading DPI 2023-10-12 10:13:46 +11:00
Andrew Murray
ceca12e876
Restored comment 2023-10-07 07:00:29 +00:00
Andrew Murray
d9283fd1f8
Use default value
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-10-07 17:09:17 +11:00
Andrew Murray
57c1cf603e Fixed may be used uninitialized warning 2023-10-07 01:15:04 +11:00
Andrew Murray
4e7f61f459
Merge branch 'main' into bgr 2023-10-06 18:50:25 +11:00
Hugo van Kemenade
5957f109a5
Merge pull request #7310 from radarhere/cmyk2rgb 2023-10-06 01:43:50 -06:00
Andrew Murray
f24222a954 Merge branch 'main' into jpeg_xmp 2023-10-06 17:23:53 +11:00
Hugo van Kemenade
7b17f9bbb4
Merge pull request #7415 from radarhere/tiff 2023-10-06 00:11:18 -06:00
Andrew Murray
b8c30655cc Include CMYK to RGB convert as unpacker 2023-10-06 16:05:03 +11:00
Andrew Murray
787daa9f19 Merge branch 'main' into cmyk2rgb 2023-10-06 15:52:32 +11:00
Andrew Murray
2d9c4e663f
Merge pull request #7302 from radarhere/png_i16
Allow saving I;16B images as PNG
2023-10-06 15:45:58 +11:00
Andrew Murray
7394e5083d
Merge branch 'main' into tiff 2023-10-06 11:40:05 +11:00
Hugo van Kemenade
6f73691564
Merge pull request #7257 from radarhere/i16_point 2023-10-05 12:54:25 -06:00
Hugo van Kemenade
09605ff48e
Merge pull request #7413 from radarhere/bc5s 2023-10-05 09:48:12 -06:00
Hugo van Kemenade
0c55a2d864
Merge pull request #7319 from radarhere/iptc 2023-10-05 09:44:56 -06:00
Hugo van Kemenade
5f04b3d278
Merge pull request #7289 from radarhere/undefined_palette 2023-10-05 09:31:02 -06:00
Hugo van Kemenade
4d66f9396b
Merge pull request #7247 from radarhere/getmask2_max_image_pixels 2023-10-05 09:28:04 -06:00
Hugo van Kemenade
0a432541ae
Merge pull request #7392 from radarhere/eps 2023-10-05 09:27:06 -06:00
Andrew Murray
29d23cfe07 Fixed invalid argument warning 2023-10-04 13:56:58 +11:00
Andrew Murray
c9ba107c2c Palette is unneeded as RGB to P conversion will not occur 2023-10-02 19:08:17 +11:00
Andrew Murray
b98dc8abe1 Consider default image when selecting mode for PNG save_all 2023-10-02 19:07:56 +11:00
Andrew Murray
60d88389ae Removed unused code 2023-10-02 11:11:35 +11:00
Andrew Murray
43e6826199
Merge pull request #7382 from nopperl/parse-eps-trailer
Read bounding box information from the trailer of EPS files if specified
2023-10-02 09:53:35 +11:00
Hugo van Kemenade
c2f7ea59b9
Merge pull request #7426 from radarhere/dds_palette 2023-09-30 14:40:17 -06:00
Andrew Murray
955b2d553c
Merge branch 'main' into cover 2023-09-30 19:04:22 +10:00
Hugo van Kemenade
8cb1e29491
Merge pull request #7420 from radarhere/transparency 2023-09-30 02:53:22 -06:00
Andrew Murray
620098571a
Corrected comment priority 2023-09-30 07:54:39 +00:00
Hugo van Kemenade
99e11f9e08
Merge pull request #7406 from radarhere/webp 2023-09-28 14:25:34 -06:00
Andrew Murray
cd4adb1677 Added reading 8-bit color images 2023-09-27 19:41:45 +10:00
Andrew Murray
e27d7a6f84 Changed has_transparency_data() to property 2023-09-26 20:14:22 +10:00
Andrew Murray
1c30809245 Allow for LA or PA in the future 2023-09-26 20:10:52 +10:00
Andrew Murray
faa66eaa6c
Added type hint
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-26 20:10:12 +10:00
Hugo van Kemenade
f76b63d016 Add end-of-file-fixer to pre-commit 2023-09-25 16:45:38 +03:00
Hugo van Kemenade
507b7d519a Fix LOG011 avoid pre-formatting log messages 2023-09-25 16:45:38 +03:00
Hugo van Kemenade
0d1e83098d Add pyupgrade to pre-commit 2023-09-25 16:45:38 +03:00
Andrew Murray
ad12caecda Convert RGBA palette to RGBA image when saving WebP 2023-09-25 20:28:25 +10:00
Andrew Murray
6bbed1add0 Added has_transparency_data() 2023-09-25 20:10:44 +10:00
Andrew Murray
d919942f8e Last trailer comment has priority 2023-09-22 18:36:52 +10:00
Andrew Murray
9de4b72c97 Trailer is not in header, ImageData or itself 2023-09-22 18:26:50 +10:00
Andrew Murray
094f23dd5c EOF ends not just the trailer, but also the file 2023-09-22 18:26:41 +10:00
Andrew Murray
8064adad7a Reduced duplicate code 2023-09-22 17:58:11 +10:00
Andrew Murray
4c9c7636be Merge branch 'main' into parse-eps-trailer 2023-09-22 16:16:26 +10:00
Andrew Murray
616ed35e74 Support reading 8-bit YCbCr TIFF images 2023-09-21 20:53:23 +10:00
Andrew Murray
352bcaac74 Set blue channel to 128 for BC5S 2023-09-21 16:38:45 +10:00
Andrew Murray
e57b08affd Move strcmp outside of while loops 2023-09-21 16:38:19 +10:00
Andrew Murray
80dbd3b193 Added ImageOps cover method 2023-09-21 11:54:36 +10:00
Andrew Murray
9632195747 Merge branch 'main' into webp 2023-09-20 22:31:16 +10:00
Andrew Murray
8d81fd98a6
Merge pull request #7401 from radarhere/bc5s
Fixed bug when reading BC5S DDS images
2023-09-20 18:28:46 +10:00
Andrew Murray
26c4798707 Revert "Merge pull request #7311 from k128/main"
This reverts commit 39d866b17d, reversing
changes made to f39f74fb82.
2023-09-18 20:34:05 +10:00
Andrew Murray
96e3534034 Corrected converting signed values to unsigned in BC5S 2023-09-16 13:53:10 +10:00
Andrew Murray
cabfed9137 Describe Image.MIME in register_mime() 2023-09-16 09:34:17 +10:00
Andrew Murray
cee8fd0788 Improved init() and preinit() documentation 2023-09-16 09:34:04 +10:00
Andrew Murray
a84a43528e Added gs_binary to control Ghostscript use on all platforms 2023-09-12 19:46:46 +10:00
Andrew Murray
f225130ee5 Only search for Ghostscript Windows binary when needed 2023-09-12 19:08:30 +10:00
Andrew Murray
1217b13b9e Handle tag_v2 in TiffImagePlugin 2023-09-11 19:02:17 +10:00
Andrew Murray
d0abab7997 When orientation is applied, delete TIFF tag 2023-09-08 15:05:53 +10:00
Andrew Murray
e195e60ce2 Ensure TIFF has transposed on load before checking orientation 2023-09-08 15:05:48 +10:00
Andrew Murray
ea953c0514 When TIFF applies orientation on load, delete tag from getexif() 2023-09-08 15:05:36 +10:00
pre-commit-ci[bot]
794a1d7ff2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-07 18:36:32 +00:00
nopperl
12d8b439d5 Read bounding box information from the trailer of EPS files if specified 2023-09-07 20:20:35 +02:00
Hugo van Kemenade
faa2375f81
Merge pull request #7357 from radarhere/qoi 2023-09-04 09:55:29 -06:00
Hugo van Kemenade
10d45950ae
Merge pull request #7358 from radarhere/bc5u 2023-09-04 09:54:52 -06:00
Andrew Murray
51a6d45566 Map buffer into (0, 0) image 2023-08-31 16:31:45 +10:00
Andrew Murray
2b9217bba8 Added BC5U reading 2023-08-31 12:13:35 +10:00
Andrew Murray
7bf7ff8217 Use previous pixel alpha for QOI_OP_RGB 2023-08-31 09:27:33 +10:00
Andrew Murray
f9f367fe54
Always cast to a tuple
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-08-30 07:27:09 +10:00
Andrew Murray
69a81dd867 Convert list to tuple in Python instead of C 2023-08-28 22:43:20 +10:00
Andrew Murray
d8c3135b6b Allow getpixel to accept a list 2023-08-28 20:12:23 +10:00
Andrew Murray
b1f5ee9043 Added font_size keyword arguments to ImageDraw text methods 2023-08-26 17:01:15 +10:00
Andrew Murray
eccef36948 Added size argument to load_default() 2023-08-26 17:01:01 +10:00
Andrew Murray
1e5aa21fa8 Added improved font to load_default() if FreeType is available 2023-08-26 17:00:34 +10:00
Hugo van Kemenade
c68bf7df8f
Merge pull request #7336 from radarhere/blur 2023-08-25 03:20:16 -06:00
Hugo van Kemenade
d80610822f
Merge pull request #7345 from radarhere/jpeg 2023-08-23 20:33:59 +03:00
Andrew Murray
9c3bc70f66
Use tuples
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-08-22 10:31:28 +10:00
Andrew Murray
dcfce9487e Merge branch 'main' into iptc 2023-08-22 10:14:48 +10:00
Andrew Murray
b37ca350a8 Allow FotoStation tags 2023-08-22 10:13:41 +10:00
Andrew Murray
8b14a67347 Merge branch 'main' into grabclipboard-linux 2023-08-21 23:58:17 +10:00
Andrew Murray
0a28840bc4 Expand buffer size when optimizing or progressive 2023-08-19 14:34:08 +10:00
Andrew Murray
a04ba81e22 bufsize is already increased to MAXBLOCK in ImageFile._save() 2023-08-19 12:37:00 +10:00
TheNooB
e06edcb527
Reformat variable name following PEP8
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-08-12 18:33:36 +08:00
Andrew Murray
9f54a11a9c Improve efficiency when a radius is zero 2023-08-12 18:17:07 +10:00
TheNooB
0b6ab79145
Check session type using environment variable instead of loginctl 2023-08-12 12:51:09 +08:00
Andrew Murray
c167d7a269 Allow GaussianBlur and BoxBlur to accept a sequence of x and y radii 2023-08-12 12:09:20 +10:00
TheNooB
7b157b045a
Use os.getlogin() instead of whoami command for getting username 2023-08-11 21:14:34 +08:00
TheNooB
a8b3feac86
Apply suggestions from code review
Simplify conditional expressions

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-08-11 21:01:05 +08:00
pre-commit-ci[bot]
164ea2df6f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-08-11 10:42:12 +00:00
TheNooB
bc658e1791
Add session type check in grabclipboard for Linux 2023-08-11 17:47:36 +08:00
Andrew Murray
39d866b17d
Merge pull request #7311 from k128/main
Read WebP duration after opening
2023-08-11 19:46:49 +10:00
Andrew Murray
bfafa460e3 Allow "loop=None" when saving 2023-08-09 10:31:34 +10:00
Andrew Murray
649ad8a804
Merge pull request #7323 from radarhere/pdf_p_transparency
Fixed transparency when saving P mode images to PDF
2023-08-08 21:30:23 +10:00
Andrew Murray
15930be644 Use "is" when comparing types 2023-08-08 08:44:03 +10:00
Andrew Murray
5c59807216 Removed unused decoders 2023-08-07 13:54:11 +10:00
Andrew Murray
a70ea82eb5 Write P transparency as SMask 2023-08-07 13:53:19 +10:00
Andrew Murray
c9147c9c85 Moved writing of object into separate function 2023-08-06 22:14:32 +10:00
Andrew Murray
6bd3ed439a Ignore IPTC field that is only zero bytes 2023-08-04 23:54:48 +10:00
Andrew Murray
c5b4ad94e8 Do not set ColorSpace for JPXDecode since it is optional 2023-08-04 18:47:28 +10:00
Andrew Murray
bc11b2d6a9 Set SMaskInData to 1 for PDFs with alpha 2023-08-04 18:46:58 +10:00
Hugo van Kemenade
95257dff87
Merge pull request #7299 from radarhere/pdf 2023-08-04 11:43:09 +03:00
Andrew Murray
6ca38552c9 Do not set ColorSpace for JPXDecode since it is optional 2023-08-03 22:07:36 +10:00
Andrew Murray
ddfb7ef14b Do not set BitsPerComponent for JPXDecode since it is ignored 2023-08-03 22:05:11 +10:00
Andrew Murray
022e650d18 Set SMaskInData to 1 for PDFs with alpha 2023-08-03 19:11:35 +10:00
Andrew Murray
6115d5957f _decoder.get_next() may return None 2023-08-01 19:16:28 +10:00
Andrew Murray
230a2e3a33 If "reset" is always true, then the argument can be removed 2023-08-01 19:15:15 +10:00
k128
15e5229030
Update WebPImagePlugin.py 2023-07-31 15:32:05 -04:00
pre-commit-ci[bot]
2f5493a5f0 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-07-31 19:19:57 +00:00
k128
27a0339d64
Update WebPImagePlugin.py
Automatically load duration
2023-07-31 15:14:22 -04:00
Hugo van Kemenade
c1c474a1f2
Merge pull request #7307 from radarhere/mode 2023-07-31 17:14:10 +03:00
Andrew Murray
07038d7e89
Merge pull request #7266 from mtreinish/handle-repr-exceptions
Handle exceptions in _repr_jpeg_ and _repr_png_
2023-07-31 11:42:44 +10:00
Andrew Murray
00cec60c35 Added CMYK to RGB unpacker 2023-07-29 21:05:33 +10:00
Andrew Murray
9979a822c7 Changed Image mode property to be read-only by default 2023-07-29 09:28:18 +10:00
Andrew Murray
9bd574058e Support BGR;15, BGR;16 and BGR;24 in putdata 2023-07-26 20:09:40 +10:00
Andrew Murray
5fa05623ff Added BGR;15, BGR;16 and BGR;24 unpacking 2023-07-26 20:09:40 +10:00
Andrew Murray
3230270aa7 Added BGR;15, BGR;16 and BGR;24 access 2023-07-26 20:09:40 +10:00
Andrew Murray
07623d1a7c
Merge pull request #7305 from hugovk/docs-clarify-textlength-return
Docs: Clarify that a single value is returned, and depends on the text direction
2023-07-26 08:16:34 +10:00
Hugo van Kemenade
62cd236d1a Clarify that a single value is returned, and depends on the text direction 2023-07-25 12:31:58 +03:00
Andrew Murray
2db354af43 Allow saving I;16B images as PNG 2023-07-24 17:17:15 +10:00
Andrew Murray
e5c94eced2 Simplified code 2023-07-23 16:26:42 +10:00
Andrew Murray
0a0a3fc51f Added saving LA images as PDFs 2023-07-22 20:16:45 +10:00
Andrew Murray
c108d9ddb0 Set alpha channel when saving LA in OpenJPEG 2023-07-22 20:05:31 +10:00
Andrew Murray
577a4d8bf8 Change get_pixel to be specific to images with 2 bands 2023-07-21 21:08:20 +10:00
Andrew Murray
7ffad80294 Removed put_pixel 2023-07-21 20:59:28 +10:00
Andrew Murray
32eec53c43 Removed comment 2023-07-17 23:50:59 +10:00
Andrew Murray
fd310512b9 Set C palette to be empty by default 2023-07-17 23:04:43 +10:00
Andrew Murray
7bfc6f16dc Set undefined palette values to black 2023-07-17 09:26:24 +10:00
Andrew Murray
a682ceaf47 Do not use transparency if it has been removed when normalizing mode 2023-07-13 15:20:44 +10:00
Andrew Murray
3f78ba80f9 Do not require curly bracket in tag name 2023-07-10 22:05:28 +10:00
Andrew Murray
2488167f33 Allow for zero-byte padding at end of XMP data 2023-07-10 22:00:30 +10:00
Andrew Murray
ba9c830b03 Corrected writing I;16 text 2023-07-08 11:30:48 +10:00
Matthew Treinish
9517feccd9
Update src/PIL/Image.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-07-06 09:00:00 -04:00
Matthew Treinish
6d440ac995
Handle exceptions in _repr_jpeg_ and _repr_png_
In 10.0.0 a _repr_jpeg_ implementation was added to the Image object to
enable the use of display_jpeg() in IPython environments. However, in
some cases the implementation of this method could result in an
exception being raised while trying to generate the jpeg data. The best
example is if the image data is in an RGBA format as a result of the
object being created by opening a PNG file. In this case trying to save
the Image object as a jpeg will error because the jpeg format can't
represent the transparency in the alpha channel. This results in an
exception being raised in the IPython/Jupyter context when outputing the
image object. However, in cases like this IPython allows the repr
methods to return None to indicate there is no representation in that
format available. [1] This commit updates the _repr_png_ and _repr_jpeg_
methods to catch any exception that might be raised while trying to
generate the image data. If an exception is raised we treat that as not
being able to generate image data in that format and return None
instead.

Related to #7259

[1] https://ipython.readthedocs.io/en/stable/config/integrating.html#custom-methods
2023-07-06 08:42:37 -04:00
Andrew Murray
5e2332a200 Corrected drawing I;16 points 2023-07-05 08:49:56 +10:00
Yay295
e7398c7888 update PyTypeObject slot names
tp_print was renamed to tp_vectorcall_offset with Python 3.8, and tp_compare was renamed to tp_as_async with Python 3.5.
tp_size has always been tp_basicsize; I don't know why that one was wrong.
2023-07-02 00:52:08 -05:00
Andrew Murray
1ffe3354d7 10.1.0.dev0 version bump 2023-07-02 00:59:40 +10:00
Andrew Murray
6e28ed1f36 10.0.0 version bump 2023-07-01 22:08:11 +10:00
Andrew Murray
74859e965d Moved MAX_IMAGE_PIXELS check to Python 2023-07-01 20:52:44 +10:00
Andrew Murray
39a3b1d83e Fixed deallocating mask images 2023-07-01 18:09:27 +10:00
Andrew Murray
d398fedb9d
Added underscores for readability
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-07-01 07:25:18 +10:00
Andrew Murray
1fe1bb49c4 Added ImageFont.MAX_STRING_LENGTH 2023-06-30 23:32:26 +10:00
Hugo van Kemenade
0ac3677b56
Merge pull request #7199 from radarhere/tiff_close 2023-06-30 09:27:26 +03:00
Hugo van Kemenade
9abef1ad0b
Merge pull request #7226 from radarhere/getcolor 2023-06-30 09:26:51 +03:00
Hugo van Kemenade
be4bfaac9e
Merge pull request #7123 from radarhere/apng 2023-06-30 09:24:20 +03:00
Andrew Murray
0740499151 Prioritise speed in _repr_png_ 2023-06-30 09:05:59 +10:00
Hugo van Kemenade
1174a9e7f4
Merge pull request #7097 from radarhere/seek
`Image.open()` seeks to the start of file objects
2023-06-30 01:05:47 +03:00
Andrew Murray
8a36b0fc2d Deprecate PyAccess 2023-06-28 20:10:10 +10:00
Andrew Murray
811bfe3658 Do not use CFFI access by default on PyPy 2023-06-28 17:57:02 +10:00
Andrew Murray
8437d98f7f Limit size even if one dimension is zero 2023-06-28 11:43:05 +10:00
Andrew Murray
45c9dcf123 Restored 32-bit support 2023-06-27 14:43:58 +10:00
Hugo van Kemenade
190c53a1b1
Merge pull request #7228 from radarhere/32bit
Removed support for 32-bit
2023-06-24 19:02:00 +03:00
Andrew Murray
0d54cf5c7f
Merge pull request #6645 from Yay295/int_def
Better C integer definitions
2023-06-24 13:35:23 +10:00
Andrew Murray
b0b0798820
Lint fix 2023-06-23 22:22:33 +10:00
Rozie
43a12542ad
Update Image.show docs to list all viewers used on linux
[ci skip]
Accurate description of how default viewer is chosen
2023-06-23 15:05:28 +03:00
Andrew Murray
d6f19625e8 Removed support for 32-bit 2023-06-23 21:52:00 +10:00
Andrew Murray
cb8956fffb Convert to HSV if mode is HSV in getcolor() 2023-06-22 23:27:45 +10:00
Hugo van Kemenade
d64739f4d1
Merge pull request #7218 from radarhere/null 2023-06-18 21:50:46 +03:00
Andrew Murray
e52fa8fe38 Use relevant extension for temporary file 2023-06-17 14:37:13 +02:00
Antoine Beyeler
f72dd8576e Changed grabclipboard() to use PNG compression on macOS
Before, a lossy JPG compression was used.
2023-06-17 12:55:58 +02:00
Andrew Murray
fd9bea271a
Compare long long with long long
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2023-06-17 14:39:34 +10:00
Andrew Murray
7044038e70 Fixed decompression bomb check 2023-06-17 14:35:44 +10:00
Andrew Murray
98cc2e63ac Destroy image on error 2023-06-15 14:27:38 +10:00
Andrew Murray
618c00c4ea Return early if image is null 2023-06-15 14:27:33 +10:00
pre-commit-ci[bot]
777c54a4d1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-06-15 00:09:03 +00:00
REDxEYE
9165771d5e Add BC5U support. Seen in Amnesia: The Bunker 2023-06-15 03:08:04 +03:00
Andrew Murray
bd4826591b Removed INVALID enum 2023-06-15 02:49:09 +03:00
Andrew Murray
cadac4aad2 Corrected error messages 2023-06-15 02:47:30 +03:00
Andrew Murray
78756cd17b Simplified imports 2023-06-15 02:46:32 +03:00
Andrew Murray
9a7bd0d10b Fixed big-endian bug 2023-06-15 02:45:46 +03:00
Andrew Murray
b87d4e075e Restored formatting 2023-06-15 02:45:46 +03:00
Andrew Murray
eda4192618 Fixed typo 2023-06-15 02:45:46 +03:00
REDxEYE
15c90ac9bb Simplified save code
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-06-15 02:45:46 +03:00
REDxEYE
91664c9d8e Small refactor 2023-06-15 02:45:43 +03:00
REDxEYE
7c25e0bbda Small refactor 2023-06-15 02:43:42 +03:00
pre-commit-ci[bot]
a63fdc2235 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-06-15 02:42:43 +03:00
REDxEYE
de8b89c823 Add support for writing LA dds textures 2023-06-15 02:42:41 +03:00
REDxEYE
429dc2850e Remove unnecessary tuple creation 2023-06-15 02:37:38 +03:00
pre-commit-ci[bot]
3602e35818 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-06-15 02:37:36 +03:00
REDxEYE
19887374ae Add support for single channel textures 2023-06-15 02:33:55 +03:00
REDxEYE
3f77a9e235 Remove unused constants 2023-06-15 02:30:34 +03:00
REDxEYE
de2b4be9b9 Add Tile namedtuple for code readability.
Add typing info to Image.tile
2023-06-15 02:30:31 +03:00
REDxEYE
f2d91fcdaa Add IntEnum/IntFlag for most of DDS members 2023-06-15 02:27:18 +03:00
mergify[bot]
561986ee71
Merge pull request #7092 from radarhere/exif_transpose
Added in_place argument to ImageOps.exif_transpose()
2023-06-14 07:24:47 +00:00
Andrew Murray
7d97fa8b86 Use snake case 2023-06-14 16:12:47 +10:00
Hugo van Kemenade
76a8e9ceb3
Merge pull request #7177 from radarhere/freetype 2023-06-14 09:06:59 +03:00
Andrew Murray
541d2605b9 Allow alpha differences to indicate different frames when saving GIF 2023-06-14 14:21:07 +10:00
Andrew Murray
044de40c93 Document that alpha_only is a keyword-only argument 2023-06-14 11:28:14 +10:00
Andrew Murray
17b19b5668 Merge branch 'main' into apng 2023-06-14 11:26:42 +10:00
Andrew Murray
d7c7b832f1
Highlight code
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-06-14 11:25:42 +10:00
Andrew Murray
bae918280d
Changed alpha_only to keyword-only argument
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-06-14 11:25:12 +10:00
Andrew Murray
f338f35657 Changed inPlace to be keyword-only argument 2023-06-14 10:01:36 +10:00
Andrew Murray
8bbd4ada9b Merge branch 'main' into exif_transpose 2023-06-14 09:57:25 +10:00
Andrew Murray
68edbbca94 Merge branch 'main' into int_def 2023-06-14 09:11:41 +10:00
Andrew Murray
538971532d Corrected error code
Co-authored-by: nulano <nulano@nulano.eu>
2023-06-14 08:55:21 +10:00
Andrew Murray
c24c1ccf81 Use "not in"
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-06-14 08:52:55 +10:00
Hugo van Kemenade
8f3ccff8f2
Merge pull request #7206 from radarhere/text_layout 2023-06-13 20:31:24 +03:00
Hugo van Kemenade
c62c514299
Merge pull request #7187 from radarhere/putpalette 2023-06-13 20:10:33 +03:00
Hugo van Kemenade
9d08c8247d
Merge pull request #7180 from radarhere/int64 2023-06-13 20:08:26 +03:00
Hugo van Kemenade
ae921956ba
Merge pull request #7078 from radarhere/long8 2023-06-13 19:48:55 +03:00
Hugo van Kemenade
0c7061e7e4
Merge pull request #7056 from radarhere/eps 2023-06-13 19:47:55 +03:00
Andrew Murray
1756df4615 Removed unused private method 2023-06-10 20:24:34 +10:00
Andrew Murray
4dcca33d30 Removed unused arguments 2023-06-10 19:06:25 +10:00
Andrew Murray
389ad11693 Only call text_layout once in getmask2 2023-06-10 17:10:42 +10:00
Andrew Murray
aeb6e9909e Removed unused argument 2023-06-10 15:57:05 +10:00
Andrew Murray
748a4d0fcd Removed unused variable 2023-06-10 14:26:28 +10:00
Andrew Murray
da6b2ec285 Document order of kernel weights 2023-06-09 10:47:20 +10:00
Andrew Murray
15edb6d625 Fixed signedness comparison warning 2023-06-07 22:33:55 +10:00
mergify[bot]
6b3991befb
Merge pull request #7146 from radarhere/apng_duration
Fixed combining single duration across duplicate APNG frames
2023-06-06 08:57:02 +00:00
Andrew Murray
400716da0d Merge branch 'main' into apng_duration 2023-06-06 18:00:48 +10:00
Andrew Murray
3b65261c96 Remove temporary file when error is raised 2023-06-06 17:54:55 +10:00
Hugo van Kemenade
07be6aad46
Merge pull request #7200 from radarhere/imagegrab
Do not use temporary file when grabbing clipboard on Linux
2023-06-06 09:35:03 +03:00
Hugo van Kemenade
3568df8af1
Merge pull request #7141 from radarhere/grabclipboardwin32 2023-06-06 09:24:13 +03:00
Hugo van Kemenade
df873e39db
Merge pull request #7181 from radarhere/gif 2023-06-06 09:22:57 +03:00
Andrew Murray
97bd53392c Do not use temporary file when grabbing clipboard on Linux 2023-06-05 18:36:41 +10:00
Andrew Murray
0835be95cb Added comment 2023-06-05 15:07:11 +10:00
Andrew Murray
e45da2ae17 Do not close provided file handles with libtiff 2023-06-05 11:07:09 +10:00
Hugo van Kemenade
9a560c78a8
Merge pull request #7173 from radarhere/relative 2023-06-02 16:00:01 +03:00
Andrew Murray
c45019fe0c Replaced deprecated Py_FileSystemDefaultEncoding for Python >= 3.12 2023-05-29 12:28:03 +10:00
Andrew Murray
07eccd9798 Fixed calling putpalette() on L and LA images before load() 2023-05-28 06:44:34 +10:00
Andrew Murray
922e239cca Fixed saving multiple 1 mode images to GIF 2023-05-24 08:55:14 +10:00
Andrew Murray
b8719033ca Removed unused INT64 definition 2023-05-23 22:53:16 +10:00
Andrew Murray
bce0f0d5a6 Moved function code inline 2023-05-23 21:25:11 +10:00
rrcgat
fffcb558f6
Use image/png mime type for ImageGrab (wl-paste) if possible, otherwise the first mime type taken 2023-05-23 18:44:25 +08:00
Andrew Murray
c656583b84 Merge branch 'main' into fix-imagegrab-with-wl-paste 2023-05-23 08:47:42 +10:00
Andrew Murray
546f6cbc27 Replaced absolute PIL import with relative import 2023-05-20 17:11:43 +10:00
Yay295
f6b516bb06 Adjust C preprocessor block labels
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-05-19 08:11:39 -05:00
Yay295
724f266460 change INT16 def failure to an error 2023-05-18 17:49:13 -05:00
Yay295
9da0b58eea move INT8 def to top 2023-05-18 17:49:13 -05:00
Yay295
fbec8f19dd add check for C99+ to use their defs if possible 2023-05-18 17:49:13 -05:00
Yay295
c2527348ec add comment explaining why #define and not typedef 2023-05-18 17:49:13 -05:00
Yay295
e9cfe4b6a2 label preprocessor if..else..endif for clarity 2023-05-18 17:49:13 -05:00
Yay295
6de5e999bd add UINT64 def if INT64 is defined 2023-05-18 17:49:12 -05:00
Yay295
509671c53e fix INT64 def and add warning if not set 2023-05-18 17:49:12 -05:00
Hugo van Kemenade
a58034b86c
Merge pull request #7135 from n3011/jpg_repr 2023-05-16 12:14:40 +03:00
Hugo van Kemenade
34ff170d8e
Merge pull request #7143 from nulano/imagegrab-prefer-xcb
Prefer screenshots using XCB over gnome-screenshot
2023-05-14 19:55:16 +03:00
Ishant Mrinal Haloi
f328383763
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-05-14 11:11:56 +05:30
Andrew Murray
59b7a48570 Updated docstrings 2023-05-13 12:24:50 +10:00
Ishant Mrinal Haloi
2db9c68571
Apply suggestions from code review
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-05-13 07:32:02 +05:30
Ishant Mrinal Haloi
46708099b1
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-05-12 21:56:40 +05:30
Andrew Murray
7e29efd518 Do not catch OSError raised when loading image 2023-05-11 16:29:08 +01:00
Andrew Murray
3ec03c6720
Only check for gnome-screenshot on Linux
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
2023-05-10 13:53:55 +10:00
Andrew Murray
c68c508e27 Fixed joined corners for odd dimensions 2023-05-10 13:25:35 +10:00
Andrew Murray
a0b691a219 Fixed combining single duration across duplicate PNG frames 2023-05-09 12:12:16 +10:00
nulano
bb18abc603
prefer screenshots using XCB over gnome-screenshot 2023-05-08 22:57:12 +01:00
Andrew Murray
f67fcf131a If the clipboard fails to open on Windows, wait and try again 2023-05-08 11:58:05 +10:00
Ishant Mrinal Haloi
ccdce1791d rename format to image_format 2023-05-06 10:35:28 +05:30
Ishant Mrinal Haloi
2d841e16c2
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-05-06 10:31:58 +05:30
Ishant Mrinal Haloi
5377b0735f add _repr_jpg_ for ipython display
Signed-off-by: Ishant Mrinal Haloi <mrinal.haloi11@gmail.com>
2023-05-04 21:43:57 +05:30
Andrew Murray
a4986ba986 Support reading signed 8-bit TIFF images 2023-05-04 07:54:30 +10:00
Hugo van Kemenade
9636a2aaf1
Merge pull request #7132 from radarhere/regular_polygon_width 2023-05-03 18:21:25 +03:00
Hugo van Kemenade
74a851965c
Merge pull request #7108 from radarhere/filter 2023-05-03 18:18:53 +03:00
Hugo van Kemenade
4c6159b9a3
Merge pull request #7112 from radarhere/grabclipboard_stderr 2023-05-03 18:16:52 +03:00
Andrew Murray
3fc446c277 Added width argument to regular_polygon 2023-05-03 22:54:18 +10:00
Andrew Murray
58e0dd7df9 Merge branch 'main' into apng 2023-05-03 13:42:39 +10:00
Andrew Murray
15ef533df9 Added alpha_only argument to getbbox() 2023-05-02 08:41:18 +10:00
Andrew Murray
ff003bfbcc Added unpacker from I;16B to I;16 2023-04-30 14:49:40 +10:00
Hugo van Kemenade
139acc4542
Merge pull request #7107 from radarhere/float_font_sizes
Support float font sizes
2023-04-29 21:20:46 +03:00
Hugo van Kemenade
380a927fc2
Merge pull request #7102 from radarhere/xref_table
Use later value for duplicate xref entries in PdfParser
2023-04-29 21:20:10 +03:00
Andrew Murray
96bdbc4afe Renamed variable 2023-04-29 19:11:02 +10:00
Andrew Murray
ebd3c47425 When saving, allow alpha differences to indicate different frames 2023-04-29 15:02:11 +10:00
Andrew Murray
ab3d0c071e Raise error from stderr of Linux grabclipboard command 2023-04-24 21:03:27 +10:00
Andrew Murray
48a6c3f072
Merge pull request #7105 from bigcat88/load-before-deepcopy
Load before getting size in __getstate__
2023-04-24 07:47:36 +10:00
Andrew Murray
d0b41da094 Support I mode for BuiltinFilter 2023-04-22 21:22:01 +10:00
Andrew Murray
81a756e93b Support float font sizes 2023-04-22 13:45:18 +10:00
Andrew Murray
91b69857c7 Removed duplicate code 2023-04-22 10:13:56 +10:00
Alexander Piskun
b10379b3c1
Load image before deepcopy(__getstate__)
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2023-04-21 17:42:45 +03:00
Andrew Murray
d2256338b8 Use later value for duplicate xref entries 2023-04-20 23:15:20 +10:00
Andrew Murray
f15d7265f7 Call init() if mimetype is not found with preinit() 2023-04-18 10:33:31 +10:00
Andrew Murray
cc84ff5e7d Note that open() seeks to the start of file objects 2023-04-17 16:10:29 +10:00
Andrew Murray
8871b95559 Merge branch 'main' into fix-imagegrab-with-wl-paste 2023-04-17 15:28:39 +10:00
Andrew Murray
57bbe6df2c Remove use of deprecated "bpp" member 2023-04-16 23:16:01 +10:00
Carl Weaver
6d12581385
Update src/PIL/ImageGrab.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-04-16 15:37:38 +08:00
Andrew Murray
fe8599c5d6 Use ExifTags 2023-04-16 14:04:39 +10:00
Andrew Murray
bcb8dfc2fa Rearranged code 2023-04-15 22:30:18 +10:00
rrcgat
099d696dc7
Fix ImageGrab with wl-paste 2023-04-15 19:28:54 +08:00
Andrew Murray
8d3014b8bf Added inPlace argument to exif_transpose() 2023-04-15 21:03:59 +10:00
Nulano
f619675115 Update vendored Raqm to 0.10.1 2023-04-12 21:14:38 +02:00
Andrew Murray
54fddf0181 Merge branch 'main' into version_bump 2023-04-11 07:18:13 +10:00
Andrew Murray
bc0bf5efea Preserve line spacing backwards compatibility 2023-04-10 18:49:06 +10:00
Andrew Murray
b2301d70d1 Removed ImageFont.getsize and related functions 2023-04-10 16:56:13 +10:00
Andrew Murray
dd15f15d08 Added further field sizes 2023-04-10 09:06:20 +10:00
Andrew Murray
2cba9904db Removed _category 2023-04-08 11:48:06 +10:00
Hugo van Kemenade
b25bf5161a Remove Image.coerce_e, deprecated in 9.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
584f8c39de Remove PhotoImage.paste() box parameter, deprecated in 9.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
c9f11565f1 Remove FreeTypeFont.getmask2 fill parameter, deprecated in 9.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
575a038f97 Remove FitsStubImagePlugin, deprecated in 9.1.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
c8ec15980b Remove constants deprecated in 9.1.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
8d83d5e66a Remove ImageShow.Viewer.show_file file argument, deprecated in 9.1.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
5dbef9e0a8 Remove ImagePalette size parameter, deprecated in 8.4.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
52f4fc59a2 Remove JpegImagePlugin.convert_dict_qtables, deprecated in 8.3.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
ddc4e90235 Remove im.category and related Image.NORMAL, Image.SEQUENCE, Image.CONTAINER, deprecated in 8.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
070e770469 Remove support for Tk/Tcl <= 8.4, deprecated in 8.2.0 2023-04-06 16:11:36 +03:00
Hugo van Kemenade
59c9d87f8a Remove support for PyQt5 and PySide2, deprecated in 9.2.0 2023-04-06 16:11:36 +03:00
Andrew Murray
1e250e1137 10.0.0.dev0 version bump 2023-04-01 23:36:52 +11:00
Hugo van Kemenade
4f7070e24c 9.6.0.dev0 version bump 2023-04-01 12:34:27 +03:00
Andrew Murray
2203afeafa Do not set size unnecessarily if image failed to open 2023-04-01 19:36:06 +11:00
Hugo van Kemenade
10794e0d66 9.5.0 version bump 2023-04-01 09:15:01 +03:00
Hugo van Kemenade
48b0be2fb7
Merge pull request #6879 from Yay295/eps_plugin_perf 2023-04-01 08:55:48 +03:00
Hugo van Kemenade
3cfdef395e
Merge pull request #7047 from nulano/freetype-import
Do not discard error message if _imagingft fails to import
2023-04-01 08:43:45 +03:00
Andrew Murray
b1b0353d17 Corrected passing TIFF_LONG to libtiff 2023-04-01 12:21:16 +11:00
Andrew Murray
aa9ecac032 Added ImageSourceData to TAGS_V2 2023-04-01 10:27:39 +11:00
Andrew Murray
3cd1e12974
Merge pull request #7052 from radarhere/ppm_half_token
Clear PPM half token after use
2023-04-01 10:07:47 +11:00
Andrew Murray
eeaee75a6e
Merge pull request #7021 from radarhere/getmask2
Do not render text if image has zero width or height
2023-04-01 09:26:06 +11:00
Andrew Murray
5932a0bd19 Clear half token after use 2023-04-01 09:23:57 +11:00
mergify[bot]
20a7ed291f
Merge pull request #7051 from Yay295/patch-1
Add missing word
2023-03-31 13:14:52 +00:00
Yay295
b606da7f0e
add missing word 2023-03-31 07:19:33 -05:00
Andrew Murray
89d2cdfcfa Fixed warning that nLeft is set but not used 2023-03-31 22:30:36 +11:00
Andrew Murray
59d67fa68a Only call PyTuple_Check once in getink 2023-03-31 21:59:06 +11:00
Andrew Murray
d84e227204 Fixed warning that variable may be uninitialized 2023-03-31 21:52:37 +11:00
Andrew Murray
485532c1f3 Mention available pixel types when converting from NumPy 2023-03-31 21:00:28 +11:00
Andrew Murray
e95b55acd4 Document loss of palette when converting to NumPy 2023-03-31 20:48:14 +11:00
Hugo van Kemenade
f191666a91
Merge pull request #6999 from radarhere/null
Handle failure from PyDict_New or PyList_New
2023-03-31 08:32:13 +03:00
nulano
3d4e9b107d
warn if module is found but fails to import in PIL.features 2023-03-31 02:57:58 +02:00
nulano
e971674011
cleanup in _imagingft 2023-03-31 02:08:58 +02:00
nulano
b18efc775d
do not discard ImportError message in ImageFont 2023-03-31 01:48:17 +02:00
Andrew Murray
448ab0a687
Call FT_Done_MM_Var when returning early
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
2023-03-30 14:36:58 +11:00
Andrew Murray
7632d8df36 Do not DECREF individual list items, reverting grouping 2023-03-30 12:35:07 +11:00
Andrew Murray
0ea1184bcf
Free additional variables
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
2023-03-30 07:54:01 +11:00
Yay295
b8b153fd77
Merge branch 'python-pillow:main' into eps_plugin_perf 2023-03-29 10:27:25 -05:00
Andrew Murray
f8be09612d
Merge pull request #6903 from joshware/jp2k_options
Support custom comments and PLT markers when saving JPEG2000 images
2023-03-29 23:43:54 +11:00
Andrew Murray
9a7a448219 Increase similiarity between test_plt_marker and _parse_comment 2023-03-29 20:14:29 +11:00
Andrew Murray
2f66d2d6a1 Changed maximum comment length to 65531 2023-03-29 19:25:35 +11:00
Andrew Murray
1fd189164c Renamed "add_plt" to "plt" 2023-03-27 22:38:29 +11:00
Hugo van Kemenade
1ff0fb4472
Merge pull request #7034 from radarhere/array_interface 2023-03-25 19:16:53 +02:00
Andrew Murray
d5d830dd00 Merge branch 'main' into bgr32 2023-03-25 23:45:48 +11:00
Andrew Murray
7c3fd25433 Allow saving bytes as comments 2023-03-24 09:45:51 +11:00
Hugo van Kemenade
745f540f0e
Merge pull request #7018 from radarhere/apng 2023-03-23 14:56:47 +02:00
Hugo van Kemenade
3d4a6f7d17
Merge pull request #6996 from radarhere/webp 2023-03-23 14:53:21 +02:00
Andrew Murray
6a931861fe Load before getting size in __array_interface__ 2023-03-23 10:12:18 +11:00
Andrew Murray
176b2a2000 Merge branch 'master' into jp2k_options 2023-03-23 08:57:20 +11:00
Hugo van Kemenade
31e8e012bb
Merge pull request #6909 from radarhere/jp2_comment 2023-03-22 23:54:55 +02:00
Andrew Murray
dc79a09d62 Merge branch 'main' into null 2023-03-22 18:56:52 +11:00
Hugo van Kemenade
e7fa3091a0
Merge pull request #7003 from radarhere/reference_count
Decrement reference count
2023-03-22 08:05:17 +02:00
nulano
e1d0a96404
remove unused version value 2023-03-21 22:05:27 +00:00
nulano
1a11ba662c
do not insert null into dict 2023-03-21 22:05:26 +00:00
Hugo van Kemenade
5832362215
Merge pull request #7020 from radarhere/no_libtiff 2023-03-21 17:12:59 +02:00
nulano
76d36da12e
avoid Py_DECREF(Py_None) 2023-03-21 00:59:00 +00:00
Andrew Murray
dfeed0eb7e Group decrementing reference counts for previous axes in font_getvaraxes 2023-03-20 22:44:14 +11:00
Andrew Murray
6328662248 PyUnicode_* may return NULL 2023-03-20 17:36:55 +11:00
Andrew Murray
11d100ce5d Support creating BGR;15, BGR;16 and BGR;24 images 2023-03-20 00:30:10 +11:00
Andrew Murray
01cdfb6b27 Removed duplicate calls to PyTuple_GET_SIZE 2023-03-19 23:29:17 +11:00
Andrew Murray
fec92ce9cc
Restored deleted docstring 2023-03-19 13:36:43 +11:00
Auto-5
f03f9670fa
Removed incorrect docstring 2023-03-18 14:12:53 +00:00
Andrew Murray
c7d4d1f75a
Fixed typo
Co-authored-by: Aarni Koskela <akx@iki.fi>
2023-03-18 22:47:04 +11:00
Andrew Murray
80edcd18d1 Do not render text if image has zero width or height 2023-03-17 20:11:35 +11:00
Andrew Murray
5080d35816 Allow libtiff_support_custom_tags to be missing 2023-03-17 11:27:58 +11:00
Andrew Murray
0966293a0d Consider transparency when applying blend mask 2023-03-16 20:05:56 +11:00
Andrew Murray
9e6ae98362 Dropped support for BGR;32 mode 2023-03-13 17:31:12 +11:00
Andrew Murray
f8d93267e1 Merge branch 'main' into i16n 2023-03-13 14:33:26 +11:00
mergify[bot]
264b19b266
Merge pull request #6852 from radarhere/qoi
Added QOI reading
2023-03-12 14:43:19 +00:00
Andrew Murray
56f9b85ad9
Removed unnecessary line
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-13 00:03:08 +11:00
Andrew Murray
36ee817329 Merge branch 'main' into pdf 2023-03-12 23:31:26 +11:00
Hugo van Kemenade
be244b5070
Merge pull request #7005 from radarhere/unclosed_file 2023-03-12 13:12:28 +02:00
Hugo van Kemenade
258cb8d8bf
Merge pull request #6998 from radarhere/ifdrational 2023-03-12 13:09:44 +02:00
Hugo van Kemenade
436ebdb191
Merge pull request #7002 from radarhere/setup_module 2023-03-12 13:09:03 +02:00
Hugo van Kemenade
8ef6503801
Merge pull request #6914 from radarhere/default 2023-03-12 12:39:45 +02:00
Hugo van Kemenade
bfcea9d718
Merge pull request #6988 from radarhere/memoryview 2023-03-11 22:42:09 +02:00
Andrew Murray
b3d7823740 Decrement reference count 2023-03-12 00:11:48 +11:00
Andrew Murray
f9cbc2e084 Close OleFileIO instance when closing or exiting FPX or MIC 2023-03-11 23:11:43 +11:00
Andrew Murray
c63b0ca210 Decrement reference count 2023-03-11 18:32:43 +11:00
Andrew Murray
347dea12a9 Moved potential error earlier 2023-03-10 23:13:15 +11:00
Andrew Murray
929dbba834 Handle failure from PyDict_New or PyList_New 2023-03-10 17:37:06 +11:00
Andrew Murray
6932562974 Added __int__ to IFDRational for Python >= 3.11 2023-03-09 22:21:37 +11:00
Andrew Murray
cbde5b2626 Added reading of JPEG2000 comments 2023-03-09 13:36:22 +11:00
Andrew Murray
2d01875e7c Added QOI reading 2023-03-09 13:34:44 +11:00
Andrew Murray
459f0d8352 Round duration when saving animated WebP 2023-03-07 18:07:46 +11:00
Andrew Murray
494a3bcf2b
Release buffer on error
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-03-06 10:00:51 +11:00
Andrew Murray
eda95342ae
Merge pull request #6986 from fcarron/fix_libtiff_file_pointer
Close file pointer copy in the libtiff encoder if still open
2023-03-05 16:24:19 +11:00
Andrew Murray
b970eb9e5d Added memoryview support to Dib.frombytes() 2023-03-04 17:18:59 +11:00
Andrew Murray
02afe1f13b Removed unused profile_fromstring method 2023-03-04 16:35:51 +11:00
Frédéric Carron
2299490082 Close the file pointer copy (_fp) in the libtiff encoder if it is still open. 2023-03-03 11:41:37 +01:00
Yay295
281cbc2755
Merge branch 'python-pillow:main' into eps_plugin_perf 2023-03-02 15:29:12 -06:00
Yay295
60b717a94b add link to %ImageData definition
and remove empty comment lines
2023-03-02 15:27:06 -06:00
Yay295
4f9c3847e8 notes about %ImageData, and use better var names 2023-03-02 15:02:53 -06:00
Hugo van Kemenade
6ca7bcceee
Merge pull request #6976 from radarhere/memoryview 2023-03-02 12:20:41 +02:00
Andrew Murray
a4965a7eaa Split into x and y errors 2023-03-01 22:06:40 +11:00
Andrew Murray
b84c29a035 Raise an error if co-ordinates are incorrectly ordered 2023-03-01 11:22:35 +11:00
Andrew Murray
9c98f4d515 Release buffer 2023-02-27 09:48:41 +11:00
Hugo van Kemenade
7e8b11b159
Merge pull request #6954 from radarhere/corners 2023-02-26 18:29:35 +02:00
Andrew Murray
6df3ad6f2d
Merge pull request #6971 from akx/clarify-variable-names
Clarify some local variable names
2023-02-26 22:45:12 +11:00
Aarni Koskela
bbbaf3c615
Update src/PIL/PcfFontFile.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-02-26 13:03:29 +02:00
Andrew Murray
c799bd8a03 Adjusted variable names and comments to better match specification 2023-02-25 16:31:26 +02:00
Andrew Murray
fcc59a4001 Use existing variable names from ImageFile 2023-02-25 16:31:26 +02:00
Hugo van Kemenade
7d8a08b221
Merge pull request #6958 from radarhere/codeblock 2023-02-25 13:38:29 +02:00
Andrew Murray
132fb9360b Added memoryview support to frombytes() 2023-02-25 19:10:47 +11:00
Andrew Murray
8a1b9aa0ad Allow comments in FITS images 2023-02-25 16:44:07 +11:00
Aarni Koskela
8e18415cc5 Clarify variable names in TiffImagePlugin
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 10:09:14 +02:00
Aarni Koskela
6f79e653d6 Clarify variable names in PcfFontFile
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 10:08:20 +02:00
Aarni Koskela
04be46d484 Clarify variable names in ImageFile
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 10:04:38 +02:00
Aarni Koskela
b6b72170a8 Clarify variable names in Image
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 09:59:54 +02:00
Aarni Koskela
f52bbf8950 Clarify variable names in BdfFontFile
Co-authored-by: Yay295 <Yay295@users.noreply.github.com>
2023-02-24 09:58:51 +02:00
Andrew Murray
742aff3718 Replace Python code-blocks with double colons 2023-02-24 08:17:10 +11:00
Andrew Murray
0d667f5e0b Do not read "resolution" parameter if it will not be used 2023-02-23 12:44:38 +01:00
Jasper van der Neut
36bcc0a898 Support saving PDF with different X and Y resolution.
Add a `dpi` parameter to the PDF save function, which accepts
a tuple with X and Y dpi.
This is useful for converting tiffg3 (fax) images to pdf,
which have split dpi like (204,391), (204,196) or (204,98).
2023-02-21 11:49:05 +01:00
Andrew Murray
60208a3250 Only allow "corners" to be used as a keyword argument 2023-02-17 10:32:55 +11:00
Andrew Murray
0f2a4c1ae5 Added "corners" argument to rounded_rectangle() 2023-02-16 19:19:17 +11:00
Andrew Murray
ad0e9dbaaf Fixed writing int as UNDEFINED tag 2023-02-14 10:52:32 +11:00
Hugo van Kemenade
f2a2794834
Merge pull request #6930 from greatvovan/patch-1 2023-02-12 14:18:48 +02:00
Andrew Murray
da38395396
Removed quotes from result in docstring 2023-02-12 21:56:23 +11:00
Hugo van Kemenade
73707eb5f7
Merge pull request #6943 from hugovk/add-3.12-dev
Test Python 3.12-dev
2023-02-12 07:21:27 +02:00
Hugo van Kemenade
79765d5b9c
Merge pull request #6939 from radarhere/exif
Resolves https://github.com/python-pillow/Pillow/issues/6932
2023-02-11 23:39:32 +02:00
Hugo van Kemenade
826c98156c Remove unused listwindows functions for Windows/3.12 support 2023-02-11 16:36:52 +02:00
Andrew Murray
20daa1d049 Fixed typo 2023-02-11 20:49:09 +11:00
Andrew Murray
bb524018d3 Raise an error when EXIF data is too long 2023-02-11 16:20:27 +11:00
Andrew Murray
a8e03e4dab Added Exif code examples 2023-02-10 20:11:50 +11:00
pre-commit-ci[bot]
074c6afdc7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-02-09 04:41:00 +00:00
Vladimir
0eac4f1942
Fix syntax 2023-02-08 20:34:45 -08:00
Vladimir
1656753146
Add docstrings for getixif() and Exif 2023-02-07 22:48:33 -08:00
Yay295
0f27ddafb7 split long line 2023-02-07 13:56:38 -06:00
Yay295
99b153c9ca
hyphenate "backwards-compatibility"
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-02-07 13:49:00 -06:00
Yay295
35463e8ca3 Merge branch 'main' into eps_plugin_perf 2023-02-06 17:50:18 -06:00
Yay295
bd0fac80c4 deprecate EpsImagePlugin.PSFile 2023-02-06 17:26:05 -06:00
Yay295
be9aea35a8 add eps test for bad BoundingBox, good ImageData 2023-02-06 17:26:04 -06:00
pre-commit-ci[bot]
24183d652e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-02-06 19:27:19 +00:00
Andrew Murray
642d574087 Added JPXDecode for RGBA images 2023-02-02 21:48:47 +11:00
Andrew Murray
b3af769c1a Set alpha channel for OpenJPEG 2023-02-02 20:52:50 +11:00
Andrew Murray
04e8a9b3e7 Removed unnecessary code 2023-01-31 22:32:02 +11:00
Andrew Murray
79e67cb5c3
Removed default argument 2023-01-31 21:42:25 +11:00
Andrew Murray
3e37a919b1 Prevent register_open from adding duplicates to ID 2023-01-28 22:43:04 +11:00
nulano
73f55b4e01 remove redundant default value
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-01-28 15:35:33 +11:00
Hugo van Kemenade
6d09f3382d
Merge pull request #6902 from radarhere/open 2023-01-21 19:06:07 +02:00
Andrew Murray
535d886bf9
Merge pull request #6905 from hugovk/deprecate-pillow-11
Handling for deprecations to be removed in Pillow 11
2023-01-21 07:06:59 +11:00
Hugo van Kemenade
9b660db62d Handling for deprecations to be removed in Pillow 11 2023-01-20 14:35:11 +02:00
pre-commit-ci[bot]
41b3ac8aed [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-01-19 00:52:43 +00:00
Josh Ware
de43bc99c8 Added support for jpeg2000 comments and PLT marker segments 2023-01-19 11:37:14 +11:00
Josh Ware
fcf5b7ef83 Fixed merge conflicts during recent pull 2023-01-19 11:33:15 +11:00
Andrew Murray
bf0abdca27 Do not retry past formats when loading all formats for the first time 2023-01-19 08:06:30 +11:00
Hugo van Kemenade
0b53853941
Merge pull request #6893 from radarhere/formats 2023-01-18 22:53:17 +02:00
Hugo van Kemenade
407f0f94c1
Merge pull request #6892 from radarhere/init 2023-01-18 22:50:41 +02:00
Andrew Murray
3360b5a756 Stop reading when a line becomes too long 2023-01-15 19:49:13 +11:00
Hugo van Kemenade
50f5eade47
Merge pull request #6895 from python-pillow/alex-clark-jeffrey-a-clark-alex
Alex Clark -> Jeffrey A. Clark (Alex)
2023-01-14 21:51:27 +02:00
Alex Clark
55ce251a89 Alex Clark -> Jeffrey A. Clark (Alex)
I'm still "Alex", just on a Jeffrey A. Clark roll lately.
2023-01-14 12:36:22 -05:00
Andrew Murray
5f9285eea6 Do not retry specified formats if they failed 2023-01-14 23:22:35 +11:00
Andrew Murray
c5d1b15824 Do not unintentionally load TIFF format at first 2023-01-14 22:45:29 +11:00
Andrew Murray
e48aead015 Allow writing IFDRational to BYTE tag 2023-01-13 21:02:42 +11:00
Yay295
89bdcfe835
Merge branch 'python-pillow:main' into eps_plugin_perf 2023-01-12 16:03:31 -06:00
Andrew Murray
a75a1a9514 Updated raqm to 0.10.0 2023-01-12 11:49:08 +11:00
Andrew Murray
eb89e3a2b1
Merge pull request #6874 from hugovk/invalid-box-blur-filter
Raise ValueError for BoxBlur filter with negative radius
2023-01-12 08:25:10 +11:00
Yay295
651b3521ac
Merge branch 'main' into eps_plugin_perf 2023-01-11 11:29:22 -06:00
Andrew Murray
173b65d095 Raise ValueError during filter operation as well 2023-01-11 20:02:10 +11:00
Andrew Murray
7f57c93b89 Only read when necessary 2023-01-11 08:50:20 +11:00
Yay295
c3134dc049 refactor EpsImagePlugin
Merge the PSFile class into the EpsImageFile class to hopefully improve performance.
Also added a check for the required "%!PS-Adobe" and "%%BoundingBox" header comments.
2023-01-10 08:44:38 -06:00
Hugo van Kemenade
08c7b17e23 Raise ValueError for BoxBlur filter with negative radius 2023-01-09 19:04:55 +02:00
Hugo van Kemenade
8d5eb71d26 Use enumerate 2023-01-08 13:47:46 +02:00
Hugo van Kemenade
2df4865e42 Use 'key in mydict' instead of 'key in mydict.keys()' 2023-01-08 13:47:46 +02:00
Hugo van Kemenade
b2b8c833aa Use single isinstance call for multiple types 2023-01-08 13:47:45 +02:00
Andrew Murray
f30eb38e31
Merge pull request #6868 from radarhere/filters
Refer to Resampling enum
2023-01-08 05:33:40 +11:00
Andrew Murray
246f6fa46a
Simply attribute reference
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-01-08 04:45:16 +11:00
Andrew Murray
a22f6ddefa
Merge pull request #6761 from javidcf/patch-1
Support arbitrary number of loaded modules on Windows
2023-01-07 17:50:57 +11:00
Andrew Murray
d3d7566d9a Refer to Resampling enum 2023-01-07 11:27:43 +11:00
Javier Dehesa
2cc40cc7f4
Fix tcl/tk loading error handling
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-01-05 00:05:54 +00:00
Javier Dehesa
da39e4e38e
Fix tcl/tk loading error handling
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-01-05 00:05:36 +00:00
Javier Dehesa
e945ab382a
Fix tcl/tk loading error handling
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-01-05 00:04:50 +00:00
Andrew Murray
ea9a1b84aa LOAD_TRUNCATED_IMAGES may allow PNG images to open 2023-01-03 14:09:45 +11:00
Andrew Murray
549560cf55 9.5.0.dev0 version bump 2023-01-02 14:03:31 +11:00
Andrew Murray
a5bbab1c1e 9.4.0 version bump 2023-01-02 10:29:07 +11:00
Andrew Murray
d4d981dc9f Updated size parameter descriptions 2023-01-02 08:41:50 +11:00
Andrew Murray
51d95add6a Replaced IOError with OSError 2023-01-01 07:03:09 +11:00
Eric Soroos
1c57ab8429 Return a PyError instead of a fake fterror.
* Update Tests to IOError rather than OSError
2023-01-01 07:03:09 +11:00
Eric Soroos
87d1770c18 Fix null pointer dereference crash with malformed font 2023-01-01 07:03:09 +11:00
Hugo van Kemenade
7b0008bb82
Merge pull request #6842 from radarhere/zero
Return from ImagingFill early if image has a zero dimension
2022-12-31 13:23:12 +02:00
Andrew Murray
b4347daa3c Merge branch 'main' into enum 2022-12-31 09:37:56 +11:00
Andrew Murray
91b01f4cc2 Return from ImagingFill early if image has a zero dimension 2022-12-30 16:48:33 +11:00
Andrew Murray
68fdd2a9e7 Further improve exception traceback readability 2022-12-30 14:24:28 +11:00
Hugo van Kemenade
2ae55ccbda Improve exception traceback readability 2022-12-30 00:07:52 +02:00
Hugo van Kemenade
9ae53cf6ae
Merge pull request #6840 from radarhere/ifd1 2022-12-29 23:38:09 +02:00
Hugo van Kemenade
1ba19b1105
Merge pull request #6800 from radarhere/int_ascii
Resolves https://github.com/python-pillow/Pillow/issues/6799
2022-12-29 23:36:33 +02:00
Andrew Murray
1e3f3ab596 Do not attempt to read IFD1 if absent 2022-12-29 21:52:09 +11:00
Hugo van Kemenade
e107af41a9
Merge pull request #6783 from radarhere/grabclipboard
If available, use wl-paste or xclip for grabclipboard() on Linux
2022-12-29 12:01:24 +02:00
Andrew Murray
4518dc82ba Merge branch 'main' into signed 2022-12-29 09:37:35 +11:00
Hugo van Kemenade
1a93e84355
Merge pull request #6798 from radarhere/apply_transparency 2022-12-28 16:49:59 +02:00
Hugo van Kemenade
d972890fb4
Merge pull request #6825 from radarhere/i16 2022-12-28 16:47:07 +02:00
Hugo van Kemenade
88a81db1c4
Merge pull request #6708 from radarhere/rgba2rgb_
Resolves https://github.com/python-pillow/Pillow/issues/6706
2022-12-28 16:27:31 +02:00
Andrew Murray
a0e1608f4f Support accessing I;16N pixels 2022-12-28 18:58:16 +11:00
Andrew Murray
8cfc25618f Support unpacking I;16N 2022-12-28 18:57:24 +11:00
Andrew Murray
e908e10aab Support packing I;16N 2022-12-28 17:47:38 +11:00
Andrew Murray
700a8e98da Support converting between I;16N and L 2022-12-28 17:47:15 +11:00
Andrew Murray
bcdb208fe2 Restored Image constants, except for duplicate Resampling attributes 2022-12-28 09:44:53 +11:00
Hugo van Kemenade
0a19b34a85
Merge pull request #6820 from radarhere/dds_l
Added DDS support for uncompressed L and LA images
2022-12-26 10:02:37 +02:00
Hugo van Kemenade
88420f6cfb
Merge pull request #6749 from radarhere/exif_lightsource
Added LightSource tag values to ExifTags
2022-12-26 10:01:32 +02:00
Andrew Murray
08816f43ae Added support for I;16 modes in putdata() 2022-12-26 18:35:24 +11:00
Hugo van Kemenade
6fc0456688
Merge pull request #6821 from radarhere/pyaccess 2022-12-23 16:23:00 +02:00
Hugo van Kemenade
54eb83557f
Merge pull request #6819 from radarhere/png_exif
Resolves https://github.com/python-pillow/Pillow/issues/6804
2022-12-23 16:21:05 +02:00
Hugo van Kemenade
e0eca1f3d9
Merge pull request #6817 from radarhere/mpo_exif 2022-12-23 16:20:38 +02:00
Hugo van Kemenade
0934c25686
Merge pull request #6762 from radarhere/exif_hide_offsets 2022-12-23 16:05:21 +02:00
Hugo van Kemenade
7a19251d0d
Merge pull request #6787 from radarhere/gif_disposal
Resolves https://github.com/python-pillow/Pillow/issues/6785
2022-12-23 16:04:29 +02:00
Hugo van Kemenade
f9c88c984e
Merge pull request #6811 from radarhere/registered_extensions
Resolves https://github.com/python-pillow/Pillow/issues/6809
2022-12-23 15:59:53 +02:00
Andrew Murray
b0f1d2ed8d Clear pyaccess after re-assigning im 2022-12-23 23:20:06 +11:00
Andrew Murray
dcf3d0bee2 Added support for uncompressed LA images 2022-12-23 19:07:45 +11:00
Andrew Murray
9e6a7d9740 Added support for uncompressed L images 2022-12-23 17:43:18 +11:00
Andrew Murray
88f15eb9f0 Do not save EXIF from info 2022-12-23 12:10:36 +11:00
Andrew Murray
318b658c9c Initialize unsigned char variables 2022-12-22 17:16:52 +11:00
Andrew Murray
9898613c4d Fixed saving EXIF data to MPO 2022-12-22 15:31:36 +11:00
Andrew Murray
9dfba1fe2b Merge branch 'main' into exif_hide_offsets 2022-12-22 09:03:11 +11:00
Andrew Murray
921c46679d Merge branch 'main' into gif_disposal 2022-12-22 08:32:27 +11:00
Andrew Murray
818e967fec Merge branch 'main' into exif_lightsource 2022-12-22 07:50:35 +11:00
Andrew Murray
c6d1fddba5 Merge branch 'main' into registered_extensions 2022-12-22 07:45:52 +11:00
Hugo van Kemenade
aab4adc441
Merge pull request #6792 from radarhere/webp_gif
Resolves https://github.com/python-pillow/Pillow/issues/6791
2022-12-21 21:09:23 +02:00
Hugo van Kemenade
acdb882aae
Merge pull request #6793 from radarhere/tile 2022-12-21 16:56:41 +02:00
Andrew Murray
967034356a Fixed BytesWarning 2022-12-21 14:20:47 +11:00
Andrew Murray
2a86d7353f Always initialize all plugins in registered_extensions() 2022-12-19 08:19:15 +11:00
Hugo van Kemenade
193b24fad0
Merge pull request #6767 from radarhere/blp_jpeg
Resolves https://github.com/python-pillow/Pillow/issues/6741
2022-12-16 21:22:01 +02:00
Hugo van Kemenade
d1cb81976c Run Bandit on CI via pre-commit 2022-12-14 21:40:44 +02:00
Andrew Murray
5257d561c0
Merge pull request #6748 from radarhere/exif_ifd
Added IFD enum to ExifTags
2022-12-14 07:33:14 +11:00
Andrew Murray
5301b86f1c Use snake case 2022-12-14 06:48:36 +11:00
Hugo van Kemenade
d013fbf656
Merge pull request #6779 from radarhere/gif_duration
Resolves https://github.com/python-pillow/Pillow/issues/6778
2022-12-13 18:14:28 +02:00
Andrew Murray
6da4169f37 Fixed writing int as ASCII tag 2022-12-13 22:40:55 +11:00
Andrew Murray
f6f622dcee Clarify apply_transparency() docstring 2022-12-12 06:36:27 +11:00
Andrew Murray
4f0b83cc54 Only set tile in ImageFile __setstate__ 2022-12-09 12:29:27 +11:00
Andrew Murray
66f5ad0eae Ignore non-opaque WebP background when saving as GIF 2022-12-09 10:45:09 +11:00
Andrew Murray
4ab837ae23 Only compare to previous when checking for duplicate frames while saving 2022-12-08 11:35:48 +11:00
Andrew Murray
2ecf88eaa6 If available, use xclip for grabclipboard() on Linux 2022-12-07 22:01:37 +11:00
Andrew Murray
ccac854077 If available, use wl-paste for grabclipboard() on Linux 2022-12-07 21:33:09 +11:00
Andrew Murray
1d780081a6 Free comment when returning early 2022-12-06 20:22:12 +11:00
Andrew Murray
c2a42655e1 Allow get_child_images to access JPEG thumbnails 2022-12-06 19:30:53 +11:00
Sam Mason
eddc9bdcec
switch to #z for comment parameter
* means `comment=None` can be passed directly
* no need to conditionally run `str.encode()`
* clean up checking of whether a comment is passed
2022-12-05 17:46:54 +00:00
Andrew Murray
72ac7d1ce9 Corrected default combined frame duration 2022-12-05 18:53:28 +11:00
Andrew Murray
e50ae85ea4 Use jpeg_write_marker to write comment 2022-12-05 13:57:26 +11:00
Andrew Murray
8ada23ed04 Added IFD1 reading 2022-12-05 09:09:00 +11:00
Andrew Murray
c1d0a00943 Use _binary instead of struct 2022-12-03 09:31:05 +11:00
Andrew Murray
976ad5746a Save comments from any image format by default 2022-12-03 09:29:02 +11:00
pre-commit-ci[bot]
e9f4858491 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-12-02 18:07:10 +00:00
Sam Mason
d822d85af6
support round-tripping JPEG comments 2022-12-02 17:57:19 +00:00
Andrew Murray
3ec8fa6147 Do not trust JPEG decoder to determine image is CMYK 2022-11-30 13:49:07 +11:00
Yay295
556b672eb2
Fix webp dealloc method definitions 2022-11-27 17:48:12 -06:00
Andrew Murray
a0326245a2 Removed typo 2022-11-28 08:40:04 +11:00
Andrew Murray
24a5405a9f Added IFD enum 2022-11-28 08:39:56 +11:00
Andrew Murray
710927a311 Added docstring 2022-11-26 19:08:49 +11:00
Andrew Murray
406a8478cd Use break instead of goto 2022-11-26 17:41:06 +11:00
Andrew Murray
3473eb8e7f Added Exif hide_offsets() 2022-11-26 15:44:03 +11:00
Andrew Murray
58cbcbf108 Added getxmp() to WebPImagePlugin 2022-11-26 12:14:44 +11:00
Javier Dehesa
4a36d9d761
Avoid using PyErr_SetFromWindowsErr on Cygwin 2022-11-25 22:27:18 +00:00
Javier Dehesa
80d7fa9004
Fix another bad cast syntax 2022-11-25 16:09:01 +00:00
Javier Dehesa
40d9732a40
Fix cast syntax 2022-11-25 15:57:07 +00:00
Javier Dehesa
73b91f58d0
Support arbitrary number of loaded modules on Windows
Changed the TKinter module loading function for Windows to support the rare (but possible) case of having more than 1024 modules loaded. This is an adaptation of the same fix that was added to Matplotlib in [PR #22445](https://github.com/matplotlib/matplotlib/pull/22445).
2022-11-25 15:10:05 +00:00
Alireza Shafaei
c01ecace73
Merge pull request #1 from radarhere/webp-params
Simplified code
2022-11-18 23:29:09 -08:00
Alireza Shafaei
690446050a minor fix in the comments 2022-11-18 23:26:08 -08:00
Andrew Murray
96a4d98abc Simplified code 2022-11-19 17:07:43 +11:00
Andrew Murray
509dcbf073 Added LightSource tag values 2022-11-19 15:35:06 +11:00
Alireza Shafaei
3587f27780 Added version check for WebP 2022-11-18 10:15:24 -08:00
Alireza Shafaei
1f6df76c42 updated webp with exact parameter. 2022-11-17 13:58:07 -08:00
Hugo van Kemenade
2b456236bb
Merge pull request #6722 from radarhere/font_start
Resolves https://github.com/python-pillow/Pillow/issues/3977
2022-11-16 10:25:05 +02:00
Andrew Murray
70c8e342a5 Added "start" argument to docstring 2022-11-16 09:15:56 +11:00
Andrew Murray
70cc8a5741 Fixed writing int as BYTE tag 2022-11-15 09:06:41 +11:00
Hugo van Kemenade
759b0301b9
Merge pull request #6735 from radarhere/mpformatversion 2022-11-13 19:51:20 +02:00
Yay295
55abf18f10
remove comment about Access.c line methods 2022-11-12 17:16:50 -06:00
Yay295
16994ccc9b
remove unused ImagingAccess->line() method def 2022-11-12 17:15:50 -06:00
Yay295
20f17cc6a7
remove unused ImagingAccess->line() method defs 2022-11-12 17:14:37 -06:00
Andrew Murray
af317a696d Added MP Format Version when saving 2022-11-13 08:00:20 +11:00
Andrew Murray
97a6f651d4 Added Interop tags 2022-11-08 12:01:15 +11:00
Andrew Murray
5471dc2b26 Use fractional coordinates when drawing text 2022-11-08 11:49:39 +11:00
Andrew Murray
03b8ac911d
Merge pull request #6714 from wiredfool/valgrind_imagingtransform
Fix compiler error: accessing 64 bytes in a region of size 48
2022-11-06 22:37:31 +11:00
Andrew Murray
f9a2f991db Replaced IOError with OSError 2022-11-04 11:48:18 +11:00
Eric Soroos
41987cffad Fix compiler error:
src/_imaging.c:1842:17: warning: ‘ImagingTransform’ accessing 64 bytes in a region of size 48 [-Wstringop-overflow=]
       1842 |         imOut = ImagingTransform(
            |                 ^~~~~~~~~~~~~~~~~
       1843 |             imOut, imIn, IMAGING_TRANSFORM_AFFINE, 0, 0, xsize, ysize, a, filter, 1);
            |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/_imaging.c:1842:17: note: referencing argument 8 of type ‘double *’
2022-11-03 22:57:39 +01:00
Andrew Murray
6ddbe4cbf0 Added signed option when saving JPEG2000 images 2022-11-03 18:26:31 +11:00
Andrew Murray
5b4703d615 Added conversion from RGBa to RGB 2022-11-01 08:39:02 +11:00
Hugo van Kemenade
4fc0a4ceb2 9.4.0.dev0 version bump 2022-10-29 17:22:07 +03:00
Hugo van Kemenade
909dc64ed5 9.3.0 version bump 2022-10-29 15:21:20 +03:00
Hugo van Kemenade
1a51ce7b95
Merge pull request #6699 from hugovk/security-libtiff_buffer 2022-10-29 15:06:57 +03:00
Hugo van Kemenade
799a6a0105 Fix linting 2022-10-29 12:06:30 +03:00
Eric Soroos
13f2c5ae14 Prevent DOS with large SAMPLESPERPIXEL in Tiff IFD
A large value in the SAMPLESPERPIXEL tag could lead to a memory and
runtime DOS in TiffImagePlugin.py when setting up the context for
image decoding.
2022-10-29 12:06:18 +03:00
Andrew Murray
93e5fd4b40 Initialize libtiff buffer 2022-10-29 12:02:03 +03:00
Hugo van Kemenade
327db9a545
Merge pull request #6329 from nulano/imagetk-leak
Inline fname2char to fix memory leak
2022-10-29 10:59:54 +03:00
Hugo van Kemenade
966e98f36a
Merge pull request #6330 from nulano/imagingft-leak
Fix memory leaks related to text features
2022-10-29 10:58:36 +03:00
Andrew Murray
a048d163d6
Merge pull request #6693 from cgohlke/patch-3
Remove backup implementation of Round for Windows platforms
2022-10-29 11:28:34 +11:00
Hugo van Kemenade
31f66ea963
Merge pull request #6445 from radarhere/set_variation_by_name 2022-10-28 13:21:30 +03:00
Christoph Gohlke
4ab80f663e
Remove backup implementation of Round for Windows platforms 2022-10-27 08:15:36 -07:00
Hugo van Kemenade
3cd8eaeddb
Merge pull request #6690 from cgohlke/patch-1 2022-10-27 14:09:58 +03:00
Christoph Gohlke
d97db54be0
Only use ASCII characters in C source file 2022-10-26 11:17:28 -07:00
Christoph Gohlke
6788e8f957
Fix malloc in _imagingft.c:font_setvaraxes 2022-10-26 11:11:30 -07:00
Hugo van Kemenade
9bbf56b368
Merge pull request #6418 from hmaarrfk/parallel_matrix_convert 2022-10-25 21:11:22 +03:00
Hugo van Kemenade
7a06bc6357
Merge pull request #6533 from nulano/document_imagedraw_attributes 2022-10-25 13:06:17 +03:00
Hugo van Kemenade
5a6293bcaf
Merge pull request #6630 from radarhere/exiftags_enum 2022-10-24 23:50:09 +03:00
Andrew Murray
46b0644c4f Do not modify previous frame when calculating delta 2022-10-24 22:19:22 +11:00
Andrew Murray
5c9bc6517f
Merge pull request #6674 from npjg/main
Added support for reading BMP images with RLE4 compression
2022-10-24 17:11:11 +11:00
Andrew Murray
cf46156345 Moved comment back [ci skip] 2022-10-24 17:07:57 +11:00
Andrew Murray
f7363c1091 Decode JPEG compressed BLP1 data in original mode 2022-10-23 15:54:55 +11:00
Andrew Murray
6c8234bef3 Combined BMP RLE decoders 2022-10-22 19:54:54 +11:00
Nathanael Gentry
cc45886bc3 Revert unintentional change 2022-10-21 20:59:16 -04:00
pre-commit-ci[bot]
f2dfd0bfb3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-10-21 23:41:29 +00:00
Nathanael Gentry
70e3e4fb10 BMP: Add 4-bit RLE decoder 2022-10-21 19:45:41 -04:00
Hugo van Kemenade
79b3b000c1
Merge pull request #6661 from radarhere/gps 2022-10-20 13:41:50 +02:00
Hugo van Kemenade
bb2016794f
Merge pull request #6647 from radarhere/rgb2lab 2022-10-19 10:32:03 +02:00
Hugo van Kemenade
87a9d7197e
Merge pull request #6644 from radarhere/convert 2022-10-19 10:22:00 +02:00
Hugo van Kemenade
745dc33525
Merge pull request #6576 from radarhere/gif 2022-10-18 16:16:57 +02:00
Hugo van Kemenade
3d491663ba
Merge pull request #6610 from radarhere/png_save_all 2022-10-18 16:14:53 +02:00
Hugo van Kemenade
1f5be894b9
Merge pull request #6662 from radarhere/pa 2022-10-17 13:12:33 +02:00
Hugo van Kemenade
d138b2d41e
Merge pull request #6627 from radarhere/crc 2022-10-13 15:12:45 +02:00
Andrew Murray
a4b257269e Image channel is used when converting PA with an RGBA palette 2022-10-13 20:21:39 +11:00
Andrew Murray
eccf9e87cf Added GPS tags 2022-10-13 19:28:39 +11:00
Andrew Murray
5f8938cb8e
Merge branch 'main' into gif 2022-10-12 22:01:35 +11:00
Hugo van Kemenade
c2efd60e22
Merge pull request #6594 from radarhere/numpy 2022-10-12 12:57:51 +02:00
Hugo van Kemenade
baaf65453a
Merge pull request #6623 from radarhere/imt 2022-10-12 12:52:22 +02:00
Hugo van Kemenade
5852b84162
Merge pull request #6611 from radarhere/imageshow 2022-10-12 12:50:50 +02:00
Hugo van Kemenade
a275541640
Merge pull request #6626 from radarhere/fli 2022-10-12 12:49:54 +02:00
Hugo van Kemenade
cf3132b7de
Merge pull request #6592 from radarhere/gif_rgba 2022-10-12 12:47:38 +02:00
Hugo van Kemenade
eb59cb61d5
Merge pull request #6517 from radarhere/multiline_centered_embedded_color
Round box position to integer when pasting embedded color
2022-10-11 16:49:13 +02:00
Hugo van Kemenade
4995d045dc
Merge pull request #6582 from radarhere/webp_exif
Removed EXIF prefix when saving WebP
2022-10-11 16:48:28 +02:00
Hugo van Kemenade
5076d34775
Merge pull request #6579 from radarhere/im
Pad IM palette to 768 bytes when saving
2022-10-11 16:47:43 +02:00
Andrew Murray
28878c68e1
Merge pull request #6449 from ShadelessFox/main
Added DDS BC6 reading
2022-10-11 12:58:24 +11:00
Andrew Murray
2942868270
Merge pull request #6642 from JayWiz/1-support-for-16-bit-integer-tiffs
Added support for opening WhiteIsZero 16 bit integer TIFF images
2022-10-11 10:10:18 +11:00
Andrew Murray
78d258f24d Removed gamma correction 2022-10-10 20:48:18 +11:00
Andrew Murray
10edb29674
Merge pull request #6654 from jsbueno/fix6652/imagepalette_rgba_color
Raise an error when allocating translucent color to RGB palette
2022-10-10 19:23:18 +11:00
Hugo van Kemenade
91e820fb46
Merge pull request #6633 from radarhere/raqm 2022-10-10 09:16:10 +02:00
Andrew Murray
0b2cef5b03 Updated error message 2022-10-10 12:02:10 +11:00
Andrew Murray
397167569a
Recommend raqm for non-English text
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2022-10-10 09:11:41 +11:00
João S. O. Bueno
f9a3178bb3 Fix #6652: Handle translucent color used in RGB ImagePallete 2022-10-09 11:47:24 -03:00
Andrew Murray
eef4d1ced1 Moved mode check outside of loops 2022-10-09 08:48:07 +11:00
Andrew Murray
fcd3eef594 Added conversion between RGB/RGBA/RGBX and LAB 2022-10-07 22:33:45 +11:00
Andrew Murray
b8cd3e72a6 Do not attempt normalization if image is already normal 2022-10-07 09:48:56 +11:00
Andrew Murray
e6ffbfd8df If palette is present but not needed, do not use global palette 2022-10-06 08:46:31 +11:00
Andrew Murray
0fd110864a Changed mode to I;16 2022-10-05 21:15:45 +11:00
Jay-Jay Aslan
802a1430fe
added support for 16 bit integer tiffs 2022-10-05 11:03:51 +02:00
Andrew Murray
fea604f693
Merge pull request #6556 from radarhere/returns
Improved documentation of ImageDraw return values
2022-10-03 19:06:58 +11:00
Andrew Murray
74f47d8c1a Document that basic layout is faster than raqm 2022-10-03 10:03:13 +11:00
Andrew Murray
ba78f5d0da Document the default layout engine 2022-10-03 09:39:37 +11:00
Andrew Murray
d03f35b5bb Added enums 2022-10-01 17:24:35 +10:00
Andrew Murray
b34307b9d2 Corrected docstring 2022-09-30 21:57:54 +10:00
Eric Soroos
db1b74198b Don't reassign crc on close 2022-09-30 21:49:15 +10:00
Andrew Murray
ea3b66d8ef Allow palette chunk to not be first 2022-09-29 21:29:16 +10:00
Andrew Murray
cb2243713c Only read a maximum of 100 bytes at a time 2022-09-29 08:22:31 +10:00
Andrew Murray
d402fe0b17 Added IMT tests 2022-09-29 08:22:01 +10:00
Hugo van Kemenade
aa8877ac5b
Merge pull request #6569 from radarhere/tiff_child_images 2022-09-27 16:45:37 +03:00
Andrew Murray
3fd6a1e312
Merge pull request #6596 from PososikTeam/fix-padding
Improved palette handling in ImageOps
2022-09-27 07:27:40 +10:00
Hugo van Kemenade
b7353af610
Merge pull request #6567 from radarhere/palette 2022-09-24 13:27:41 +03:00
Hugo van Kemenade
3a30a87139
Merge pull request #6559 from radarhere/photoimage 2022-09-24 13:26:23 +03:00
Andrew Murray
34f61d6d2d Updated redirected URLs 2022-09-23 22:13:50 +10:00
Andrew Murray
aabb964de1 Show all frames in ImageShow 2022-09-23 20:14:05 +10:00
Andrew Murray
b2b3b62be7 Consider all frames when selecting mode for PNG save_all 2022-09-23 20:06:08 +10:00
Andrew Murray
b3e847a164
Merge branch 'main' into fix-padding 2022-09-21 20:22:27 +10:00
Hugo van Kemenade
f98fde7dad
Merge pull request #6522 from bibinhashley/ImageOps.contain-function-issue-in-finding-new-size 2022-09-21 12:58:09 +03:00
Hugo van Kemenade
920bcecd0e
Merge pull request #6548 from radarhere/gif_palette 2022-09-21 12:46:56 +03:00
Hugo van Kemenade
f73499e475
Merge pull request #6543 from radarhere/remap_palette 2022-09-21 12:45:26 +03:00
Andrew Murray
3c42b270b9 Copy palette in expand() for PA 2022-09-19 21:39:38 +10:00
Andrew Murray
279ddf4ce6 Use getpalette() in ImageOps 2022-09-19 21:34:29 +10:00
Andrew Murray
c0aaf54816 Removed unnecessary palette copy 2022-09-19 12:41:20 +10:00
Sitcebelly
d88200e0d0 fix bug 2022-09-18 22:32:09 +03:00
Sitcebelly
d80aa74da4 Put palette into the new pad image 2022-09-18 21:14:52 +03:00
Andrew Murray
d02f91c6da Raise a warning if NumPy will not raise an error during conversion 2022-09-17 20:11:55 +10:00
Andrew Murray
6663ed929b If first frame has transparency for RGB_ALWAYS, use RGBA 2022-09-17 17:58:24 +10:00
Andrew Murray
17b56b9463 Merge branch 'main' into set_variation_by_name 2022-09-17 00:01:05 +10:00
Andrew Murray
166654d985 Merge branch 'main' into multiline_centered_embedded_color 2022-09-16 23:57:27 +10:00
Hugo van Kemenade
50e0c85380
Merge pull request #6500 from radarhere/tga 2022-09-16 16:29:44 +03:00
Andrew Murray
16d04f4a49 Removed EXIF prefix when saving 2022-09-15 21:25:40 +10:00
Andrew Murray
50ba43ac4f Pad IM palette to 768 bytes when saving 2022-09-14 21:01:58 +10:00
Andrew Murray
8b2d70d17a Corrected BMP palette size when saving 2022-09-14 19:54:36 +10:00
Andrew Murray
ae6520ccd6 Fixed pasting an L frame onto an RGB(A) GIF 2022-09-14 00:05:23 +10:00
Hugo van Kemenade
9b53e3b581
Merge pull request #6539 from radarhere/thumbnail
Do not call load() before draft() in Image.thumbnail
2022-09-11 19:15:01 +03:00
Andrew Murray
beb7b4d0f6 Added reading of TIFF child images 2022-09-10 22:50:54 +10:00
Andrew Murray
2a7e603ae2 Defer parsing of palette into colors 2022-09-09 22:28:30 +10:00
Andrew Murray
bce9df62f1
Rearranged text
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-09-06 16:19:47 +10:00
Andrew Murray
7359af91f0
Rearranged text
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-09-06 16:18:55 +10:00
Andrew Murray
209ec9da47 Use target 2022-09-06 06:43:52 +10:00
Andrew Murray
ee5de25f87 Apply transparency to P images before passing to tkinter.PhotoImage 2022-09-05 11:58:45 +10:00
Andrew Murray
780de80e5c Added examples for updating code 2022-09-03 22:23:05 +10:00
Andrew Murray
a36b766d36 Simplified enum references 2022-09-03 20:53:22 +10:00
Hugo van Kemenade
7158816bc8
Merge pull request #6552 from radarhere/constants 2022-08-31 18:06:00 +03:00
Hugo van Kemenade
0b5c150805
Merge pull request #6497 from radarhere/convert 2022-08-31 17:09:38 +03:00
mergify[bot]
762c29c711
Merge pull request #6504 from radarhere/pyaccess_pa
Allow RGB and RGBA values for PA image putpixel
2022-08-31 13:12:06 +00:00
Andrew Murray
d06cd7073d
Merge pull request #6551 from nulano/interp
Removed support for PyPy before Python 3.6
2022-08-31 21:27:58 +10:00
Andrew Murray
2eca2989a2 Merge branch 'main' into pyaccess_pa 2022-08-31 20:56:38 +10:00
Hugo van Kemenade
b953f73548
Merge pull request #6518 from radarhere/pdf_ccittfaxdecode 2022-08-31 13:55:46 +03:00
Hugo van Kemenade
b607e834a9
Merge pull request #6510 from radarhere/buffer 2022-08-31 13:50:35 +03:00
Hugo van Kemenade
6697de1160
Merge pull request #6493 from radarhere/bytes_ascii 2022-08-31 13:46:36 +03:00
Andrew Murray
b3dcf17886 Use constants 2022-08-31 20:09:05 +10:00
Hugo van Kemenade
96441fb3b1
Merge pull request #6499 from radarhere/eps 2022-08-30 17:11:13 +03:00
nulano
54c560f611
Removed support for PyPy before Python 3.6 2022-08-30 14:12:48 +02:00
Andrew Murray
7b0e56bb21 Removed support for Python before interpaddr() 2022-08-30 09:21:24 +10:00
Andrew Murray
841ba4a940 Simplified code 2022-08-30 08:08:01 +10:00
Andrew Murray
e7fab6abf4 Fixed remapping to palette with duplicate entries 2022-08-29 23:20:31 +10:00
Andrew Murray
9fa421923c Removed requirement for 256 palette entries 2022-08-28 15:58:30 +10:00
Andrew Murray
e613271776 Fixed typo 2022-08-27 18:48:47 +10:00
Andrew Murray
38b53a9fd7 Do not call load() before draft() 2022-08-26 20:33:51 +10:00
Ondrej Baranovič
18bd77bbc0
simplify code, make test more generic 2022-08-25 19:45:33 +10:00
nulano
ced381edaa
Document ImageDraw attributes 2022-08-25 00:48:19 +02:00
Andrew Murray
f9d3ee0f48 Round position in pad() 2022-08-24 22:56:19 +10:00
Bibin Hashley
be9224f285 ImageOps.contain function finding new size issue 2022-08-23 02:57:03 +05:30
Andrew Murray
3b4ea7c602 Do not use CCITTFaxDecode filter if libtiff is not available 2022-08-22 19:57:33 +10:00
Andrew Murray
54b01f55f8 Round box position to integer when pasting embedded color 2022-08-22 12:14:54 +10:00
Andrew Murray
c463ef4fe3 Fallback to not using mmap if buffer is not large enough 2022-08-17 21:13:09 +10:00
Andrew Murray
8a60db322f Copy palette when converting from P to PA 2022-08-17 17:05:53 +10:00
Andrew Murray
b84816c02f Added pa2p 2022-08-16 22:45:55 +10:00
Hugo van Kemenade
87ecd01fc0
Merge pull request #6484 from radarhere/imagedraw_font 2022-08-15 08:08:53 +03:00
Andrew Murray
a37593f004 Allow RGB and RGBA values for PA image putpixel 2022-08-14 14:34:42 +10:00
Andrew Murray
5d4fbdfab4 Simplified code 2022-08-13 19:46:46 +10:00
Andrew Murray
99e401123b Corrected palette size when saving 2022-08-13 19:46:07 +10:00
Andrew Murray
7e1a0ca544 Open 1 bit EPS in mode 1 2022-08-13 18:32:29 +10:00
Andrew Murray
3459120732 Fixed writing bytes as ASCII tag 2022-08-11 20:46:58 +10:00
Andrew Murray
8135bd5cfb Added documentation 2022-08-11 10:35:44 +10:00
Hugo van Kemenade
92b0f2c919
Merge pull request #6476 from radarhere/exif 2022-08-09 15:08:54 +03:00
Hugo van Kemenade
26b7930bfc
Merge pull request #6485 from radarhere/font
Note to Windows users that FreeType will keep the font file open
2022-08-07 19:14:09 +03:00
Hugo van Kemenade
ae14255c34
Merge pull request #6470 from radarhere/pdf_ccittfaxdecode
Save 1 mode PDF using CCITTFaxDecode filter
2022-08-07 19:11:37 +03:00
Andrew Murray
c24b6ef4f0 Document workaround 2022-08-06 23:01:36 +10:00
Andrew Murray
42a5a743c1 Note to Windows users that FreeType will keep the font file open 2022-08-06 22:48:10 +10:00
Andrew Murray
04d9761316 Changed "font" to class variable 2022-08-06 17:29:44 +10:00
Andrew Murray
e77a7b6b4f Added support for RGBA PSD images 2022-08-05 23:29:58 +10:00
Andrew Murray
1197e19982 Document that exif_transpose() does not change orientations of 1 2022-08-04 14:19:17 +10:00
Andrew Murray
1112ad67a3 Document that orientation data is removed by exif_transpose() 2022-08-04 14:18:31 +10:00
Andrew Murray
c3cc621c67 Merge branch 'python-pillow-main' 2022-08-02 15:55:21 +10:00
Andrew Murray
2b14d83549 Added strip_size as TIFF encoder argument 2022-08-01 21:41:17 +10:00
Andrew Murray
f5b27f90f7 Save 1 mode PDF using CCITTFaxDecode filter 2022-08-01 20:38:47 +10:00
ShadelessFox
952237d373
Minimize unnecessary code changes 2022-07-31 19:16:25 +03:00
mergify[bot]
363586be6a
Merge pull request #6463 from bigcat88/xmp-tags-orientation
Parse orientation from XMP tag contents
2022-07-30 02:02:50 +00:00
mergify[bot]
87a08e2381
Merge pull request #6457 from REDxEYE/ATI1-2_support
Add support for ATI1/2(BC4/BC5) DDS files
2022-07-27 12:30:52 +00:00
Andrew Murray
4276340074 Sorted formats by n 2022-07-27 21:32:48 +10:00
Andrew Murray
f42e255206 Simplified code 2022-07-26 11:58:44 +10:00
Alexander Piskun
6e97da0260
fixing xmp tag orientation generated by exiftool 2022-07-26 00:30:32 +03:00
Hugo van Kemenade
cd261abbcb
Merge pull request #6455 from radarhere/gif_tile 2022-07-25 10:05:27 +03:00
Hugo van Kemenade
dd20412472
Merge pull request #6444 from radarhere/mpo
Support saving multiple MPO frames
2022-07-24 11:21:46 +03:00
ShadelessFox
3bec5999e0
Rename remaining occurrences of BC6S -> BC6HS 2022-07-23 15:20:35 +03:00
Andrew Murray
5bd893f760 Rename format to BC6H and BC6HS 2022-07-23 14:16:40 +10:00
REDxEYE
2376399150 Add test and test files for ATI1 pixel format and fix image mode for ATI1 2022-07-23 01:02:06 +03:00
REDxEYE
ad2c6a20fe Add support for ATI1/2(BC4/BC5) DDS files
This commit adds support for loading DDS with ATI1 and ATI2 fourcc pixel format
2022-07-23 00:30:27 +03:00
Andrew Murray
8784ee1410 Moved code into separate function 2022-07-22 07:59:30 +10:00
Andrew Murray
0844fb0ed3 Do not clear tile if not updating the image when seeking 2022-07-21 09:05:14 +10:00
ShadelessFox
4b97f88ef8
Code cleanup 2022-07-19 02:19:21 +03:00
ShadelessFox
18a3c249b6
Fix BC6H_SF decoder 2022-07-18 22:24:40 +03:00
REDxEYE
b7715d1600
Fix BC6H_SF decoding error.
Decoding error were caused by additional sign extend call after endpoint
transform, according to khronos documentation, you only suppose to sign
extend endpoints only once, further calls to sign extend mangles
endpoint data.
2022-07-18 22:24:40 +03:00
ShadelessFox
f58c0ea533
Fix BC6 block decoder 2022-07-18 22:24:40 +03:00
Andrew Murray
dea30e4c80 Fixed set_variation_by_name offset 2022-07-18 08:39:23 +10:00
Andrew Murray
2944ff18d6 Support saving multiple MPO frames 2022-07-16 20:02:58 +10:00
Tim Gates
dfa6655bdd
docs: fix simple typo, unpredicatable -> unpredictable
There is a small typo in src/PIL/Image.py.

Should read `unpredictable` rather than `unpredicatable`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-07-16 19:04:42 +10:00
Andrew Murray
9f6a315092 Added ABGR MASK_MODE 2022-07-14 07:25:28 +10:00
Andrew Murray
2b9d48403a Reordered SUPPORTED to match MASK_MODES 2022-07-14 07:08:25 +10:00
Hugo van Kemenade
ec0b9ede09
Merge pull request #6429 from radarhere/psdraw 2022-07-12 13:01:12 +03:00
Andrew Murray
40a0999303 Raise ValueError if PNG sRGB chunk is truncated 2022-07-11 20:02:41 +10:00
Andrew Murray
80c1ef5dcd Simplified rectangle command 2022-07-11 19:38:46 +10:00
Andrew Murray
db1d945ce7 Changed second rectangle parameter to distance from bottom 2022-07-11 18:36:27 +10:00
Andrew Murray
ed98c668ee Fixed PSDraw rectangle 2022-07-11 06:54:23 +10:00
Hugo van Kemenade
b0185e4e48
Merge pull request #6415 from radarhere/doc 2022-07-06 21:01:54 +03:00
Andrew Murray
4f7f5470b1 Fixed typo 2022-07-06 08:30:24 +10:00
Andrew Murray
527eecae80 Fallback to python3 2022-07-05 20:55:56 +00:00
Mark Harfouche
02e90e21f4 Release the GIL when applying matrix conversion to images 2022-07-05 15:13:39 -04:00
Santiago Castro
a0b22d2203
Fix when sys.executable is empty or null 2022-07-04 09:50:47 -07:00
Andrew Murray
300f6c8a59 Document where to find other codecs 2022-07-04 19:33:21 +10:00
Hugo van Kemenade
26e2c7e030 9.3.0.dev0 version bump 2022-07-01 21:29:53 +03:00
Hugo van Kemenade
dc518ac25e 9.2.0 version bump 2022-07-01 16:16:26 +03:00
Andrew Murray
8a6050ee5b Replaced __internal__ argument with warning filters 2022-07-01 14:10:29 +02:00
Andrew Murray
729fe6f8b0 Updated indentation 2022-07-01 19:45:36 +10:00
nulano
ad5271d62f
Document replacements for individual deprecated font methods 2022-06-30 15:03:55 +02:00
Andrew Murray
65020e7c7c Documented deprecation in individual methods 2022-06-30 15:03:12 +02:00
Ondrej Baranovič
838b1f1598
add replacement for getsize_multiline to deprecation warning 2022-06-30 14:22:07 +02:00
pre-commit-ci[bot]
303ec1a95e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-06-30 12:21:43 +00:00
Ondrej Baranovič
f57a9d678c
update TransposedFont.getlength error message
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-06-30 14:20:56 +02:00
Andrew Murray
0d91d13a6e Merge branch 'main' into deprecate-getsize 2022-06-30 20:37:37 +10:00
Andrew Murray
d66e730fea
Merge pull request #6376 from nulano/fribidi-no-version
Fixed null check for fribidi_version_info in FriBiDi shim
2022-06-30 19:27:28 +10:00
Andrew Murray
c9f1b35e98 Added GIF decompression bomb check 2022-06-30 12:47:35 +10:00
Hugo van Kemenade
714ff4e397
Merge pull request #6386 from dawidcrivelli/handle_pcf_missing_characters
Handle PCF fonts files with less than 256 characters
2022-06-27 07:59:50 +03:00
Andrew Murray
93805d5257 Limit expected number of characters to nencoding 2022-06-27 14:05:13 +10:00
Andrew Murray
fc497ffe5e
Merge pull request #6378 from raygard/fix_get_optimize
Improved GIF optimize condition
2022-06-27 09:12:20 +10:00