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
74a851965c
Merge pull request #7108 from radarhere/filter
2023-05-03 18:18:53 +03:00
Andrew Murray
ff003bfbcc
Added unpacker from I;16B to I;16
2023-04-30 14:49:40 +10: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
d0b41da094
Support I mode for BuiltinFilter
2023-04-22 21:22:01 +10:00
Andrew Murray
57bbe6df2c
Remove use of deprecated "bpp" member
2023-04-16 23:16:01 +10:00
Andrew Murray
89d2cdfcfa
Fixed warning that nLeft is set but not used
2023-03-31 22:30:36 +11: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
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
Andrew Murray
d5d830dd00
Merge branch 'main' into bgr32
2023-03-25 23:45:48 +11:00
Andrew Murray
176b2a2000
Merge branch 'master' into jp2k_options
2023-03-23 08:57:20 +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
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
Andrew Murray
36ee817329
Merge branch 'main' into pdf
2023-03-12 23:31:26 +11:00
Andrew Murray
b84c29a035
Raise an error if co-ordinates are incorrectly ordered
2023-03-01 11:22:35 +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
Josh Ware
de43bc99c8
Added support for jpeg2000 comments and PLT marker segments
2023-01-19 11:37:14 +11:00
Andrew Murray
173b65d095
Raise ValueError during filter operation as well
2023-01-11 20:02:10 +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
4518dc82ba
Merge branch 'main' into signed
2022-12-29 09:37:35 +11: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
318b658c9c
Initialize unsigned char variables
2022-12-22 17:16:52 +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
e50ae85ea4
Use jpeg_write_marker to write comment
2022-12-05 13:57:26 +11: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
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
Andrew Murray
93e5fd4b40
Initialize libtiff buffer
2022-10-29 12:02:03 +03:00
Christoph Gohlke
4ab80f663e
Remove backup implementation of Round for Windows platforms
2022-10-27 08:15:36 -07:00
Christoph Gohlke
d97db54be0
Only use ASCII characters in C source file
2022-10-26 11:17:28 -07:00
Hugo van Kemenade
9bbf56b368
Merge pull request #6418 from hmaarrfk/parallel_matrix_convert
2022-10-25 21:11:22 +03: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
78d258f24d
Removed gamma correction
2022-10-10 20:48:18 +11:00
Andrew Murray
eef4d1ced1
Moved mode check outside of loops
2022-10-09 08:48:07 +11:00
Andrew Murray
34f61d6d2d
Updated redirected URLs
2022-09-23 22:13:50 +10:00
Hugo van Kemenade
0b5c150805
Merge pull request #6497 from radarhere/convert
2022-08-31 17:09:38 +03:00
Andrew Murray
e613271776
Fixed typo
2022-08-27 18:48:47 +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
ShadelessFox
952237d373
Minimize unnecessary code changes
2022-07-31 19:16:25 +03:00
ShadelessFox
3bec5999e0
Rename remaining occurrences of BC6S -> BC6HS
2022-07-23 15:20:35 +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
Mark Harfouche
02e90e21f4
Release the GIL when applying matrix conversion to images
2022-07-05 15:13:39 -04:00
William Jacobs
9f9e26522e
Fixed bug with rounding pixels to palette
...
This fixes a bug with rounding pixels to the nearest palette color. Specifically, there is a typo with computing the minimum distance from a palette color to a given cache box. This is causing palette colors to be incorrectly excluded from consideration.
2022-06-18 04:09:41 -04:00
Hugo van Kemenade
f7ec22f518
Merge pull request #6197 from radarhere/endian
...
Fixed behaviour change from endian fix
2022-06-10 19:02:54 +03:00
Hugo van Kemenade
38931c1e47
Merge pull request #6278 from radarhere/polygon
...
Fixed drawing translucent 1px high polygons
2022-06-04 09:34:37 +03:00
Hugo van Kemenade
37c642338b
Merge pull request #6337 from RedShy/p2pa_images_conversion
...
Fix "P"->"PA" image conversion
2022-06-01 22:17:55 +03:00
Andrew Murray
40a918d274
Set readcount to TIFF_VARIABLE for a variable number of values
2022-05-28 20:14:05 +10:00
Andrew Murray
71d6a7b14f
Merge pull request #6303 from radarhere/disconnected
...
Only try to connect discontiguous corners at the end of edges
2022-05-28 16:40:00 +10:00
Davide Consalvo
6a071f81d7
fixed p2pa conversion
2022-05-27 12:24:19 +02:00
Hugo van Kemenade
ef8cec6185
Merge pull request #6256 from radarhere/furthestV
...
Ensure that furthest v is set in quantize2
2022-05-17 20:04:50 +03:00
Andrew Murray
f0353c5996
When reading past the end of a scan line, reduce bytes left
2022-05-17 11:53:24 +03:00
Andrew Murray
62c7ee0f00
Only try to connect discontiguous corners at the end of edges
2022-05-16 22:31:49 +10:00
Yulv-git
a0fa540b0b
Fix some typos.
2022-05-14 12:46:46 +08:00
Andrew Murray
c824ab048f
Fixed drawing translucent 1px high polygons
2022-05-06 22:35:26 +10:00
Andrew Murray
44494a1171
Set furthestV to first v in case compute_distances does not assign it
2022-05-01 23:32:47 +10:00
Andrew Murray
b299d7cfc2
Simplified code by using unsigned int instead of union
2022-05-01 23:32:47 +10:00
Andrew Murray
950d0ad1d3
Fixed behaviour change from #5901 endian fix
2022-04-12 23:12:54 +10:00
Andrew Murray
ba5f2d75b5
Merge pull request #6167 from gmarkall/unpack-bgra16
...
Add support for unpacking 16-bit BGRA
2022-04-04 07:49:45 +10:00
Andrew Murray
29c122fe5d
Updated BGRA comments
2022-04-02 22:00:49 +11:00
scaramallion
de26f78eb1
Add 'mct' and 'use_jp2' options for J2K saving
2022-03-31 22:13:17 +03:00
Graham Markall
e500dcfb97
Add support for unpacking 16-bit BGRA
2022-03-31 10:42:54 +01:00
Hugo van Kemenade
e60ca89721
Merge pull request #6150 from radarhere/gif
2022-03-30 23:23:59 +03:00
Hugo van Kemenade
f7169f9c93
Merge pull request #5980 from radarhere/polygon
2022-03-27 18:51:10 +03:00
Hugo van Kemenade
35e1932748
Merge pull request #5970 from radarhere/warnings
2022-03-27 18:43:38 +03:00
Andrew Murray
ce8c682748
Added setting to convert to RGB only at a different palette
2022-03-22 20:28:49 +11:00
Andrew Murray
ebdb47e693
Support reading I;16R TIFF images
2022-03-20 13:34:50 +11:00
Andrew Murray
6f128c4c39
Removed unused variable
2022-03-15 22:15:24 +11:00
Hugo van Kemenade
652542c770
Merge pull request #6112 from radarhere/i_i16_conversion
...
Clip I;16 to be unsigned, not signed
2022-03-10 19:56:45 +02:00
Andrew Murray
c8b69a78f3
Clip I;16 to be unsigned, not signed
2022-03-05 13:42:39 +11:00
Andrew Murray
7d3274518d
Allow LA to be used as a mask in paste()
2022-03-01 21:05:42 +11:00
Andrew Murray
e2b007f0c2
Use transparency info key when converting to LA
2022-03-01 20:25:25 +11:00
Andrew Murray
0d729941a8
Handle packets that cross scan lines
2022-02-25 09:41:16 +11:00
Andrew Murray
17d342bc4b
Simplified code as both values are 7 bit
2022-02-25 09:41:16 +11:00
Andrew Murray
7aa49741c6
Merge branch 'main' into getpalette
2022-02-20 23:52:20 +11:00
Andrew Murray
341802c2dc
Removed unused argument
2022-02-19 10:50:07 +11:00
Hugo van Kemenade
1ec7be9a87
Merge pull request #6060 from radarhere/palette
...
Consider palette size when converting and in getpalette()
2022-02-18 23:31:56 +02:00
Hugo van Kemenade
0aca22e863
Merge pull request #6052 from radarhere/p2pa
2022-02-17 09:39:39 +02:00
Andrew Murray
852859476b
Added rawmode argument to getpalette()
2022-02-17 10:15:03 +11:00
Andrew Murray
54cb09d8b4
When converting to P, restrict colors to palette size
2022-02-16 11:01:00 +11:00
Andrew Murray
948c064b28
Allow getpalette() to return less than 256 colors
2022-02-16 09:56:13 +11:00
Andrew Murray
41a9975377
Moved strcmp outside of loop
2022-02-14 21:50:19 +11:00
Andrew Murray
5411263d92
Simplified code
2022-02-14 19:24:47 +11:00