Commit Graph

2179 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
6ddbe4cbf0 Added signed option when saving JPEG2000 images 2022-11-03 18:26:31 +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
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
Hugo van Kemenade
31f66ea963
Merge pull request #6445 from radarhere/set_variation_by_name 2022-10-28 13:21:30 +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
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
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