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
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
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
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
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
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
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