Andrew Murray
fac2d2781e
Merge pull request #4837 from nulano/formats
...
Add formats parameter to open
2020-09-05 20:49:59 +10:00
Andrew Murray
9c22425881
Lint fix
2020-09-05 13:32:59 +10:00
Hugo van Kemenade
3dba4ee10a
Merge pull request #4846 from comhar/features/compute_polygon_coordinates
2020-09-04 23:28:43 +03:00
nulano
a340dc5fd3
Merge remote-tracking branch 'upstream/master' into formats
2020-09-04 21:07:34 +02:00
Hugo van Kemenade
799fa9764f
Merge pull request #4882 from nulano/putpixel
2020-09-03 19:22:30 +03:00
Hugo van Kemenade
ddc4c64664
Merge branch 'master' into rm-3.5
2020-09-02 20:36:30 +03:00
Hugo van Kemenade
9f1f63a46b
Merge pull request #4862 from radarhere/subifds
2020-09-02 16:58:55 +03:00
Andrew Murray
186a4723c8
Added test for empty GPS IFD
2020-09-02 21:14:36 +10:00
Hugo van Kemenade
e0eec1eb56
Merge branch 'master' into rm-3.5
2020-09-01 20:16:46 +03:00
Andrew Murray
bb013270af
Removed trailing comma
2020-08-31 18:50:15 +10:00
Andrew Murray
298b7d0333
Update pre-commit
2020-08-31 18:50:15 +10:00
Andrew Murray
0a46cbfea9
Reverted NaN change, so that NaN != NaN
2020-08-28 20:55:47 +10:00
luphord
4bb35c57dd
clarify comment
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-08-28 20:47:17 +10:00
luphord
ae5e0218e9
remove whitespace
2020-08-28 20:47:17 +10:00
luphord
1fd9ccfe3c
test Exif self-equality
2020-08-28 20:47:16 +10:00
luphord
9db5266fa7
test IFDRational equality
2020-08-28 20:47:16 +10:00
Andrew Murray
0af193afc0
Added test
2020-08-24 21:32:55 +10:00
Hugo van Kemenade
27d34d2f13
Merge pull request #4823 from radarhere/close
...
Do not try to close file pointer if file pointer is empty
2020-08-23 14:26:11 +03:00
Tommy C
b142560488
Rename b_circle
and bounding_circle
+ accept ((x0, y0), r)
...
Summary of changes
- Rename `b_circle` and `bounding_circle`
-`bounding_circle` now accepts both formats below:
- (x0, y0, r)
- ((x0, y0), r)
2020-08-22 20:19:23 +01:00
nulano
4b2a0173d3
group test cases
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-08-21 14:11:47 +02:00
nulano
76a51270fa
split up test
2020-08-20 23:23:15 +02:00
Tommy C
df9329f9f0
Replace bbox
with b_circle
, kwargs with args + minor tweaks
...
Summary of changes:
- `ImageDraw.regular_polygon` now accepts a bounding circle which
inscribes the polygon. A bounding circle is defined by a center point
(x0, y0) and a radius. A bounding box is no longer accepted.
- All keyword args have been replaced with positional args.
Misc
- Test image file renaming, minor variable name changes
2020-08-20 20:46:11 +01:00
nulano
4bb78d53a3
give proper error message for invalid putpixel color type
2020-08-20 00:01:03 +02:00
Tommy C
ac7d41545d
Update regular_polygon
args + arg checks
...
Summary of changes
- Allow positional args in `regular_polygon` method
- Allow multiple bounding box formats
- (e.g. bbox = [(x0, y0), (x1, y1)] or [x0, y0, x1, y1])
- Check if bounding box is square
- Update var names
- b_box => bbox
- nb_sides => n_sides
2020-08-16 21:07:16 +01:00
Tommy C
0ed01dd964
Add ImageDraw.regular_polygon
2020-08-16 13:29:13 +01:00
Andrew Murray
14af7bb5ac
Do not try to close fp if fp is empty
2020-08-15 13:07:14 +10:00
Hugo van Kemenade
ef986e376f
Merge branch 'master' into master
2020-08-13 23:58:42 +03:00
Andrew Murray
e96109b93c
Added writing of subIFDs
2020-08-13 22:25:24 +10:00
Hugo van Kemenade
1fe4070af6
Drop support for EOL Python 3.5
2020-08-11 22:29:44 +03:00
Hugo van Kemenade
fdc09206d0
Merge pull request #4828 from radarhere/exif_text
2020-08-11 21:52:12 +03:00
navneeth
2d3a841e4b
testing with approx tuple to fix ubuntu test failures
2020-08-12 00:08:29 +09:00
navneeth
d0de431fe4
testing with approx tuple to fix ubuntu test failures
2020-08-12 00:06:16 +09:00
navneeth
01aeaa4cad
added explicit test for autocontrast implementation - pixel value check
2020-08-11 23:47:48 +09:00
navneeth
4841bbe2a5
added explicit test for autocontrast implementation - pixel value check
2020-08-11 23:36:39 +09:00
Hugo van Kemenade
cb26b4d40f
Merge branch 'master' into master
2020-08-09 13:57:46 +03:00
Hugo van Kemenade
dd87dd50c0
Update to isort 5 with Black profile support
2020-08-08 22:39:29 +03:00
Navneeth Subramanian
faf913d0f8
Update Tests/test_imageops.py
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-08-08 19:32:52 +09:00
navneeth
fa493809a6
ENH: Autocontrast - Code review feedback
2020-08-07 14:31:17 +09:00
navneeth
8fad541531
ENH: Autocontrast method enhancement - adding the option to specify mask for contrast computation
2020-08-06 09:00:13 +09:00
nulano
2b061b68db
add formats parameter to Image.open to restrict list of formats attempting to read an image file
2020-08-03 00:24:02 +02:00
Andrew Murray
5da1a8adcf
Read EXIF data tEXt chunk into info as bytes instead of string
2020-07-31 17:42:48 +10:00
Hugo van Kemenade
10615a7da7
Upgrade Python syntax for 3.6+
...
Co-authored-by: nulano <nulano@nulano.eu>
2020-07-30 10:09:18 +03:00
Hugo van Kemenade
48c7d84bf7
Merge pull request #4814 from radarhere/sysconfig
2020-07-29 09:50:41 +03:00
Andrew Murray
fda22ed82e
Removed unused variables
2020-07-29 07:54:33 +10:00
Andrew Murray
a10634e13f
Do not explicitly import distutils
2020-07-26 14:59:30 +10:00
Andrew Murray
42bb401e88
Replaced distutils sysconfig
2020-07-25 20:03:27 +10:00
Andrew Murray
11de331886
Merge pull request #4798 from hugovk/rm-deprecated-notimplemented
...
Remove long-deprecated Image.py functions
2020-07-24 20:48:20 +10:00
Andrew Murray
b243a6113e
Merge pull request #4797 from hugovk/rm-distutils.version
...
Replace distutils.version with packaging.version.parse
2020-07-19 08:12:31 +10:00
Hugo van Kemenade
0b7077a385
Merge pull request #4788 from samamorgan/master
2020-07-17 11:07:56 +03:00
Hugo van Kemenade
40aefc6ba5
Remove im.offset, deprecated in 2001; and fromstring and tostring, deprecated in 2013
2020-07-17 10:55:20 +03:00
Sam Morgan
74e02e6c4e
Add test for PSD mimetype
2020-07-16 08:26:42 -07:00
Hugo van Kemenade
304d3c1080
Replace distutils.version with packaging.version.parse, distutils will eventually be removed from stdlib
2020-07-16 14:57:39 +03:00
Jakub Kulík
ee856bdc25
Fix expected failures on big endian systems without CI
2020-07-16 11:04:16 +02:00
Hugo van Kemenade
559510b378
Remove attributes deprecated since 3.2.0
2020-07-09 23:53:22 +10:00
Kanglai Qian
b5c59878da
support raw rgba8888 for dds
2020-07-07 00:22:57 +08:00
Hugo van Kemenade
ec6f2d41f8
Merge pull request #4749 from millionhz/autocontrast
2020-07-05 12:10:23 +03:00
Andrew Murray
9432bba6d1
Moved tests
2020-07-02 20:28:00 +10:00
Andrew Murray
4b5eab4c17
Simplified code
2020-07-02 19:14:28 +10:00
Hamza
16e804b892
linting fixed
2020-07-01 04:37:17 +05:00
Hamza
cbf4f328c7
fixed tests
2020-07-01 04:20:19 +05:00
Hamza
b768cc09d7
added test
2020-07-01 04:01:06 +05:00
Stanislau Tsitsianok
88651c334f
Try to fix CI
2020-06-29 23:58:58 +03:00
Stanislau Tsitsianok
7dedb1402f
Merge remote-tracking branch 'upstream/master' into ellipse
2020-06-29 23:31:25 +03:00
Stanislau Tsitsianok
5830a641cc
Added more tests
2020-06-29 23:31:04 +03:00
Stanislau Tsitsianok
9a9d3a050a
Fixed tests
2020-06-29 22:49:11 +03:00
Hugo van Kemenade
74a4c88a12
Merge pull request #4741 from radarhere/icns
2020-06-29 20:21:51 +03:00
Hugo van Kemenade
645f7f2346
Merge pull request #4742 from radarhere/apng_dispose
...
Fixed loading non-RGBA mode APNGs with dispose background
2020-06-29 17:15:34 +03:00
Andrew Murray
4cf7c562e4
Merge pull request #4726 from hugovk/fix-png-disposal-comparison-bug
...
APNG: Fix setting disposal
2020-06-30 00:01:15 +10:00
Andrew Murray
cd01a5ab9f
Added disposal test
2020-06-29 22:02:01 +10:00
Andrew Murray
cdf4936c07
Fixed loading non-RGBA mode images with dispose background
2020-06-29 21:20:57 +10:00
Andrew Murray
1e8d418f42
Fixed ICNS file pointer saving
2020-06-28 17:24:27 +10:00
Hugo van Kemenade
b4e7202dcb
Merge pull request #4698 from nulano/skips
2020-06-27 14:19:49 +03:00
Hugo van Kemenade
d641bdc504
Fix isort
2020-06-27 14:05:34 +03:00
Hugo van Kemenade
f6cb5efa15
Merge pull request #4714 from radarhere/show
...
Deprecated _showxv
2020-06-25 23:15:51 +03:00
Hugo van Kemenade
7dd8837967
Merge pull request #4647 from radarhere/blocklist
...
Allow libtiff to write COLORMAP tag
2020-06-25 23:04:29 +03:00
Andrew Murray
ee06255ff0
Deprecated _showxv
2020-06-23 22:20:58 +10:00
Hugo van Kemenade
71fadd5c67
Merge pull request #4722 from radarhere/line
2020-06-23 14:53:56 +03:00
Andrew Murray
9979efff12
Merge pull request #4646 from nulano/show-command
...
Deprecate Image.show(command="...")
2020-06-23 19:47:57 +10:00
Andrew Murray
b042483baa
Replaced assert_image_similar with assert_image_similar_tofile
2020-06-23 19:17:41 +10:00
Andrew Murray
c1fe0b4e0c
Use hypot function
2020-06-23 19:17:00 +10:00
Kirill Kuzminykh
6d2fe429c2
Reformat code of `test_file_jpeg.py
.
2020-06-22 12:20:57 +03:00
Andrew Murray
95ace8a39c
Merge branch 'master' into fix_jpeg_magic_number
2020-06-22 18:42:58 +10:00
Hugo van Kemenade
1bc67c9f0f
Merge pull request #4700 from nulano/features-version
2020-06-21 21:36:46 +03:00
nulano
12ddff729b
Merge branch 'master' into skips
2020-06-21 18:05:27 +01:00
Hugo van Kemenade
7b759e160a
Merge pull request #4615 from nulano/clipboard-png
2020-06-21 18:56:04 +03:00
Hugo van Kemenade
390b34c231
Merge pull request #4664 from nulano/ft-getsize-mode
2020-06-21 18:53:03 +03:00
nulano
d5a6b2584e
add tests for version numbers
2020-06-21 18:59:01 +10:00
nulano
a324f4a466
add version to features info block
2020-06-21 18:58:39 +10:00
Andrew Murray
8383e840e4
Merge pull request #4626 from radarhere/stripbytecounts
...
Change STRIPBYTECOUNTS to LONG if necessary when saving
2020-06-21 09:02:56 +10:00
Hugo van Kemenade
bcb8cbbf22
Merge pull request #4639 from radarhere/jfif
...
Write JFIF header when saving JPEG
2020-06-20 15:54:11 +03:00
Hugo van Kemenade
2d9dcc7657
Merge pull request #4627 from radarhere/tiff_jpeg
...
Replaced tiff_jpeg with jpeg compression when saving TIFF images
2020-06-20 15:49:09 +03:00
Andrew Murray
d728cd5875
Allow libtiff to write COLORMAP tag
2020-06-20 22:38:38 +10:00
Hugo van Kemenade
7d9ac36e42
Merge pull request #4605 from radarhere/byte_tags
...
Writing TIFF tags: improved BYTE, added UNDEFINED
2020-06-20 15:33:18 +03:00
Hugo van Kemenade
b9a087d482
Merge pull request #4566 from radarhere/text
...
Consider transparency when pasting text on an RGBA image
2020-06-20 15:02:59 +03:00
Hugo van Kemenade
713dd17c8f
Merge pull request #4547 from radarhere/webp
...
Added method argument to single frame WebP saving
2020-06-20 14:04:01 +03:00
Andrew Murray
65742cfc95
Renamed test
2020-06-20 09:57:51 +10:00
Andrew Murray
abbc890b20
Replaced OSError with more specific UnidentifiedImageError
2020-06-20 09:51:48 +10:00
Andrew Murray
3e9068a345
Decreased length of test image data
2020-06-20 09:48:55 +10:00
Kirill Kuzminykh
f99e0b824b
Replaced primitive "magic number" inside of JpegImagePlugin._accept() function by more correct version.
2020-06-18 16:18:18 +03:00
Andrew Murray
6ad98ba3c0
Do not ignore viewer if order is zero when registering
2020-06-18 21:40:38 +10:00