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
96e3534034
Corrected converting signed values to unsigned in BC5S
2023-09-16 13:53:10 +10:00
Andrew Murray
9f54a11a9c
Improve efficiency when a radius is zero
2023-08-12 18:17:07 +10: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
Hugo van Kemenade
95257dff87
Merge pull request #7299 from radarhere/pdf
2023-08-04 11:43:09 +03:00
Andrew Murray
00cec60c35
Added CMYK to RGB unpacker
2023-07-29 21:05:33 +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
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
ba9c830b03
Corrected writing I;16 text
2023-07-08 11:30:48 +10:00
Andrew Murray
5e2332a200
Corrected drawing I;16 points
2023-07-05 08:49:56 +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
be4bfaac9e
Merge pull request #7123 from radarhere/apng
2023-06-30 09:24:20 +03: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
d6f19625e8
Removed support for 32-bit
2023-06-23 21:52:00 +10:00
Andrew Murray
17b19b5668
Merge branch 'main' into apng
2023-06-14 11:26:42 +10:00
Andrew Murray
68edbbca94
Merge branch 'main' into int_def
2023-06-14 09:11:41 +10: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
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
15edb6d625
Fixed signedness comparison warning
2023-06-07 22:33:55 +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
Andrew Murray
07eccd9798
Fixed calling putpalette() on L and LA images before load()
2023-05-28 06:44:34 +10:00
Andrew Murray
b8719033ca
Removed unused INT64 definition
2023-05-23 22:53:16 +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
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
Andrew Murray
83d4f451fa
Ensure image is opaque after converting P to PA with RGB palette
2022-02-14 16:10:59 +11:00
Andrew Murray
85b872deb6
Added unpacker from RGBA;15 to RGB
2022-02-07 10:18:14 +11:00
Andrew Murray
b894c8c73d
Connected discontiguous polygon corners
2022-01-21 11:55:59 +11:00
Andrew Murray
c692fb42f8
Fixed comparison warnings
2022-01-18 14:19:43 +11:00
Andrew Murray
6565d5b1f3
Merge pull request #5517 from kmilos/patch-1
...
Explicitly enable strip chopping for large uncompressed TIFFs
2021-12-30 15:34:02 +11:00
Andrew Murray
4d1d2c9855
Merge pull request #5807 from DWesl/tkimaging-on-cygwin
...
Use the Windows method to get TCL functions on Cygwin
2021-12-30 00:08:31 +11:00
Hugo van Kemenade
3c39be3bc2
Merge pull request #5901 from radarhere/i16
...
Improved I;16 operations on big endian
2021-12-28 10:12:00 +02:00
Hugo van Kemenade
cc670c940e
Merge pull request #5869 from radarhere/quantize_palette
...
Fixed palette index for zeroed color in FASTOCTREE quantize
2021-12-28 10:05:58 +02:00
Hugo van Kemenade
e7b53259d1
Merge pull request #5824 from radarhere/l_macro
...
Added rounding when converting P and PA
2021-12-28 10:02:36 +02:00
Andrew Murray
aeb549ef8f
Fixed unpacking I;16B to I;16 on big endian
2021-12-28 17:38:01 +11:00
Andrew Murray
4b7b07de70
Fixed JPEG2000 I;16 images on big endian
2021-12-28 17:06:05 +11:00
Andrew Murray
4222605442
Fixed freeing pointer
2021-12-27 13:39:37 +11:00
Andrew Murray
fdec387b4a
Fixed palette index for zeroed color in FASTOCTREE quantize
2021-12-11 16:07:45 +11:00
Andrew Murray
6337428df1
Loading transparent pixels in C from subsequent GIF frames is no longer a problem
2021-11-29 17:49:12 +11:00
Andrew Murray
90a52d3c0d
Added width argument to polygon
2021-11-16 22:02:54 +11:00
Andrew Murray
ca15c684ea
Only prevent repeated polygon pixels when drawing with transparency
2021-11-15 23:28:29 +11:00
Andrew Murray
bb6212a332
Added rounding when converting P and PA
2021-11-10 08:00:58 +11:00