Hugo van Kemenade
2ae55ccbda
Improve exception traceback readability
2022-12-30 00:07:52 +02:00
Andrew Murray
b3e847a164
Merge branch 'main' into fix-padding
2022-09-21 20:22:27 +10:00
Andrew Murray
3c42b270b9
Copy palette in expand() for PA
2022-09-19 21:39:38 +10:00
Andrew Murray
279ddf4ce6
Use getpalette() in ImageOps
2022-09-19 21:34:29 +10:00
Andrew Murray
c0aaf54816
Removed unnecessary palette copy
2022-09-19 12:41:20 +10:00
Sitcebelly
d88200e0d0
fix bug
2022-09-18 22:32:09 +03:00
Sitcebelly
d80aa74da4
Put palette into the new pad image
2022-09-18 21:14:52 +03:00
Andrew Murray
f9d3ee0f48
Round position in pad()
2022-08-24 22:56:19 +10:00
Bibin Hashley
be9224f285
ImageOps.contain function finding new size issue
2022-08-23 02:57:03 +05:30
Andrew Murray
1197e19982
Document that exif_transpose() does not change orientations of 1
2022-08-04 14:19:17 +10:00
Andrew Murray
1112ad67a3
Document that orientation data is removed by exif_transpose()
2022-08-04 14:18:31 +10:00
Andrew Murray
f42e255206
Simplified code
2022-07-26 11:58:44 +10:00
Alexander Piskun
6e97da0260
fixing xmp tag orientation generated by exiftool
2022-07-26 00:30:32 +03:00
Hugo van Kemenade
4bc6483564
Merge pull request #6034 from radarhere/imageops
2022-03-30 16:16:57 +03:00
Andrew Murray
ecb64fe210
Allow 1 mode images to be inverted
2022-02-08 09:12:01 +11:00
Andrew Murray
f8e4e9c2dd
Added enums
2022-01-15 09:02:31 +11:00
Andrew Murray
97ed2ecd97
Changed URLs to https
2021-10-27 22:51:54 +11:00
Andrew Murray
0a7af10827
Instead of drawing border, calculate palette index before image creation in expand()
2021-07-16 20:58:32 +10:00
Andrew Murray
917a598615
Handle removing orientation from alternate types of EXIF data
2021-07-06 10:37:28 +10:00
Andrew Murray
3e5ceb6d67
Corrected border position
2021-06-29 21:24:41 +10:00
Andrew Murray
b6b362c807
Set color after attaching palette in expand()
2021-06-23 19:28:56 +10:00
Hugo van Kemenade
e5b2d61e00
Merge pull request #5551 from radarhere/imageops
2021-06-20 15:51:21 +03:00
Andrew Murray
6639b2af7f
Copy palette to new images in expand
2021-06-19 21:24:58 +10:00
Andrew Murray
04566917f8
Do not modify EXIF of original image instance in exif_transpose()
2021-06-18 19:01:12 +10:00
Andrew Murray
38a520c109
Updated docstrings
2021-05-01 22:35:53 +10:00
Andrew Murray
91b3a9d6a1
Updated docstring
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-05-01 21:56:49 +10:00
Andrew Murray
40eceec70d
Added contain method
2021-04-19 20:12:52 +10:00
elejke
2c973b4cca
versionadded version fixed
2021-03-23 13:57:51 +03:00
elejke
9b8f7c2a8f
versionadded directive and releasenotes added
2021-03-23 13:56:51 +03:00
elejke
c585e6ab6b
Add preserve_tone option to autocontrast
2021-03-21 21:15:13 +03:00
Hugo van Kemenade
ef986e376f
Merge branch 'master' into master
2020-08-13 23:58:42 +03:00
nulano
6cd0d60315
use code formatting instead of emphasis where applicable [ci skip]
2020-08-11 00:54:12 +02:00
Navneeth Subramanian
ca3796f4f6
Update src/PIL/ImageOps.py
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-08-07 14:16:07 +09:00
Navneeth Subramanian
665b414033
Update src/PIL/ImageOps.py
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-08-07 14:15:55 +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
Andrew Murray
7d49c8f38c
Updated documentation
2020-07-02 19:14:24 +10:00
Hamza
27c40910d8
Update src/PIL/ImageOps.py
...
Yup you are absolutely correct; it does the job in fewer lines of code too.
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-07-01 19:01:53 +05:00
Hamza
fb2a184eed
ImageOps autocontrast cutoff updated
2020-07-01 00:48:38 +05:00
Alexander
54f3dc6006
Math functions return int in Python 3
2020-02-08 00:34:53 +03:00
Jon Dufresne
63729766c4
Remove unnecessary coerce to float
...
In Python 3, the division operator is floating point division. No longer
need to coerce integers to floating point numbers before division.
2020-01-26 06:33:18 -08:00
Hugo
113477fbee
Fix unexpected unindents
2019-12-21 14:05:50 +02:00
Alexander
4da9858709
change default resampling filter for ImageOps.pad(), ImageOps.scale() and ImageOps.fit()
2019-12-17 18:15:02 +03:00
Hugo
3e24c5fea4
Replace isStringType(t) with isinstance(t, str)
...
Co-Authored-By: Jon Dufresne <jon.dufresne@gmail.com>
2019-10-08 17:26:52 +03:00
Hugo
538d9e2e5d
Upgrade Python syntax with pyupgrade --py3-plus
2019-10-07 14:30:59 +03:00
Andrew Murray
1809f46e0b
Do not calculate the crop width if it is already known
2019-09-29 14:26:32 +10:00
Jon Dufresne
d50445ff30
Introduce isort to automate import ordering and formatting
...
Similar to the recent adoption of Black. isort is a Python utility to
sort imports alphabetically and automatically separate into sections. By
using isort, contributors can quickly and automatically conform to the
projects style without thinking. Just let the tool do it.
Uses the configuration recommended by the Black to avoid conflicts of
style.
Rewrite TestImageQt.test_deprecated to no rely on import order.
2019-07-06 16:11:35 -07:00
Hugo
53a7e35004
Format with Black
2019-06-10 18:22:46 +03:00
Andrew Murray
40bc46ff49
Moved ImageFile.Exif to Image.Exif
2019-04-01 20:03:02 +11:00
Andrew Murray
8f0db65cd7
Allow exif_transpose to work on Image instances as well as ImageFile
2019-04-01 19:37:25 +11:00
Andrew Murray
38fb9b1030
Delete EXIF orientation tag after transposing
2019-04-01 18:49:09 +11:00