Commit Graph

282 Commits

Author SHA1 Message Date
Andrew Murray
e625f73119 Added scale argument to IcnsImageFile load() 2024-09-06 11:40:45 +10:00
Andrew Murray
d4c72da6b2 Added type hints to example code 2024-08-15 14:10:31 +10:00
Aleksandr Karpinskii
6180abc75c Remove WebP versions notes from docs 2024-08-13 09:34:49 +04:00
Aleksandr Karpinskii
a3468996c0 Remove webp animations flags and conditions
Removed:
_webp.WebPDecode
_webp.HAVE_WEBPANIM
features.webp_anim
2024-08-13 09:33:20 +04:00
Aleksandr Karpinskii
c1e8375af8 Require webpmux and webpdemux 2024-08-13 09:24:52 +04:00
Andrew Murray
059b8e9171 Updated line formatting 2024-04-05 06:52:36 +11:00
Andrew Murray
0702f704fa
Remove commas
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-04-05 05:16:41 +11:00
Andrew Murray
2a2588d5df
Use extlink
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-04-05 05:09:11 +11:00
Andrew Murray
0cc5de4e09 Link to https://pypi.org/project/qoi 2024-04-04 12:17:02 +11:00
Andrew Murray
8c57cd56a5 QoiImagePlugin uses PyDecoder 2024-04-03 12:00:02 +11:00
Hugo van Kemenade
6464d5cf91
Merge pull request #7894 from radarhere/fits_gzip 2024-03-28 18:09:55 +02:00
Andrew Murray
142473c7b4 Support GZIP_1 compression 2024-03-26 21:29:28 +11:00
Andrew Murray
fb84c546b7 Removed references to the "current version" 2024-03-26 06:00:03 +11:00
Andrew Murray
64c8c27271 Added alpha_quality argument when saving 2024-03-13 18:55:29 +11:00
Nulano
586e774094 add PFM support to release notes 2024-01-08 17:35:01 +01:00
Nulano
0d841aab9a add support for grayscale pfm image format 2024-01-06 14:08:51 +01:00
Andrew Murray
d93a5ad70b
Merge pull request #7553 from bgilbert/jpeg-rgb
Add `keep_rgb` option when saving JPEG to prevent conversion of RGB colorspace
2024-01-01 23:55:37 +11:00
Benjamin Gilbert
a72b5963d7 Document JPEG 2000 support for writing YCbCr and reading subsampled color
Read support for subsampled RGB and YCbCr color channels was added in
4f4c3b34f8 and not documented at the time.  Write support for YCbCr
appears to date to 61fb89ec54, the original commit.

Retain the existing language about YCbCr input conversion to RGB, even
though it's not completely correct.  OpenJPEG through 2.5.0 doesn't set
color_space in opj_read_header(), so we end up in our
OPJ_CLRSPC_UNSPECIFIED fallback path, which guesses sRGB if there's no
component subsampling.  This means we currently can't round-trip YCbCr via
JPEG 2000.  The next OpenJPEG release will fix this, so leave the docs as
is.

Also fix typo: .j2p -> .jp2.
2023-12-26 12:52:27 -06:00
Benjamin Gilbert
a5fab5fc0b Fail if chroma subsampling selected when writing RGB JPEG
The user presumably doesn't intend to subsample the green and blue
channels.
2023-12-26 12:37:35 -06:00
Hugo van Kemenade
18907b5f7e
Merge pull request #7568 from radarhere/gif_transparency 2023-12-21 12:58:07 +02:00
Benjamin Gilbert
4b422db243 Add keep_rgb option to prevent RGB -> YCbCr conversion during JPEG write
libjpeg automatically converts RGB to YCbCr by default.  Add a keep_rgb
option to disable libjpeg's automatic conversion of RGB images during
write.
2023-12-13 18:26:35 -06:00
Benjamin Gilbert
dafaa1c512 Document JPEG streamtype option
streamtype=1 is new in 10.2.0; the other values have existed since Git
pre-history.
2023-12-04 06:58:37 -06:00
Andrew Murray
55c5587437 Fill identical pixels with transparency in subsequent frames 2023-11-25 19:16:32 +11:00
Andrew Murray
c855584dac Corrected "optimize" default when saving GIF images 2023-11-25 17:30:09 +11:00
Benjamin Gilbert
e572722479 Allow configuring JPEG restart marker interval on save
libjpeg allows specifying the marker interval either in MCU blocks or in
MCU rows.  Support both, via separate parameters, rather than requiring
callers to do the math.

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-10-31 17:47:25 -05:00
Hugo van Kemenade
ac6eb84704 Add 'pypi' Sphinx role 2023-10-30 08:56:42 +02:00
Andrew Murray
84e148e944 Document that olefile is required for FPX and MIC formats 2023-10-30 09:02:42 +11:00
Hugo van Kemenade
0a432541ae
Merge pull request #7392 from radarhere/eps 2023-10-05 09:27:06 -06:00
Andrew Murray
114aadd2ca Added versionadded 2023-10-01 06:13:40 +11:00
Andrew Murray
3caae280b9 Added release notes 2023-09-30 11:32:54 +10:00
Andrew Murray
ffe2076fd6 Shortened property description 2023-09-13 08:03:23 +10:00
Andrew Murray
3ee8009561 Document gs_binary property 2023-09-12 22:22:42 +10:00
Andrew Murray
bfafa460e3 Allow "loop=None" when saving 2023-08-09 10:31:34 +10:00
Andrew Murray
0a0a3fc51f Added saving LA images as PDFs 2023-07-22 20:16:45 +10:00
Andrew Murray
064cd6fb83 Added more information about PPM formats 2023-07-22 18:47:55 +10:00
Grégoire Jadi
9a32c0f821
doc WAL: Add link to PIL.Image.Image.putpalette
[ci skip]
2023-07-05 11:26:46 +02:00
Andrew Murray
b2b05f3b83 Moved QOI from Write-Only to Read-Only 2023-06-14 18:55:19 +10:00
Andrew Murray
598216fb46 OpenJPEG 2.4.0 or later is required for PLT markers 2023-03-29 19:25:14 +11:00
Andrew Murray
7d6ff23e1f
Renamed "add_plt" to "plt"
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-28 07:32:30 +11:00
Andrew Murray
176b2a2000 Merge branch 'master' into jp2k_options 2023-03-23 08:57:20 +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
da2083fb8d List modes that can be used when saving PDFs 2023-03-13 00:07:53 +11:00
Andrew Murray
0a6092b0e6
Use full name of format
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-03-12 23:25:38 +11:00
Andrew Murray
2d01875e7c Added QOI reading 2023-03-09 13:34:44 +11:00
Hugo van Kemenade
7d8a08b221
Merge pull request #6958 from radarhere/codeblock 2023-02-25 13:38:29 +02:00
Andrew Murray
4777379465
Merge pull request #6961 from jvanderneutstulen/add-save-pdf-dpi-tuple
Support saving PDF with different X and Y resolution
2023-02-24 12:50:42 +11:00
Jasper van der Neut - Stulen
3c3d888450 Update docs/handbook/image-file-formats.rst
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-02-23 23:26:52 +01:00
Andrew Murray
742aff3718 Replace Python code-blocks with double colons 2023-02-24 08:17:10 +11:00
Andrew Murray
acc7e0b469 Highlight code example 2023-02-24 08:00:24 +11: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