Alexander
fd21de7dc4
Merge branch 'refs/heads/master' into box-in-thumbnail
...
# Conflicts:
# Tests/test_image_thumbnail.py
2019-11-24 05:27:13 +03:00
Alexander
4126f6cdf7
return chosen image mode and the box of the image
2019-11-24 04:55:49 +03:00
Alexander
2d1482b400
minor fixes related to draft
2019-11-24 04:33:34 +03:00
Hugo
e5486b40f8
Merge remote-tracking branch 'upstream/master' into rm-2.7
2019-11-18 13:56:42 +02:00
Hugo
0c5895470c
Remove deprecated __version__ from plugins
2019-11-05 17:01:03 +02:00
Bei Pang
f53b86b673
Removed TypeError exception check in JpegImagePlugin; Updated comments in test
2019-10-28 09:48:37 -07:00
Bei Pang
a2b0269167
Added comment to ValueError
2019-10-27 07:50:30 +11:00
Bei Pang
bcc766e02d
Use default DPI when exif provides invalid x_resolution
2019-10-27 07:50:30 +11: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
Andrew Murray
6cd99fc3cf
Merge branch 'master' into rm-2.7
2019-10-08 18:57:27 +11:00
Jon Dufresne
64032061c0
Move several imports to the top-level of the file
...
This better follows PEP 8 style guide:
https://www.python.org/dev/peps/pep-0008/#imports
> Imports are always put at the top of the file, just after any module
> comments and docstrings, and before module globals and constants.
This also avoids duplicate import code within the same file.
2019-10-07 06:28:36 -07:00
Hugo
538d9e2e5d
Upgrade Python syntax with pyupgrade --py3-plus
2019-10-07 14:30:59 +03:00
Andrew Murray
f3ed44a566
Changed the Image getexif method to return a shared Exif instance
2019-08-23 06:13:20 +10:00
Andrew Murray
0b405c86be
Lazily use ImageFileDirectory_v1 values from Exif
2019-08-18 23:03:43 +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
2274c2afc7
Fixed reading APP13 marker without Photoshop data
2019-04-05 20:02:45 +11:00
Andrew Murray
40bc46ff49
Moved ImageFile.Exif to Image.Exif
2019-04-01 20:03:02 +11:00
Hugo
7d378a8e4c
Merge pull request #3625 from radarhere/exif
...
Add EXIF class
2019-04-01 10:20:05 +03:00
Andrew Murray
2c09252640
Merge pull request #3658 from Glandos/fast_mpo_open
...
Fast MPO open
2019-03-31 12:58:07 +11:00
Andrew Murray
259a2ce2b2
Removed camelcase
2019-03-31 08:09:01 +11:00
Andrew Murray
c96cdb5e77
Consistent DPI rounding
2019-03-30 15:03:57 +11:00
Andrew Murray
e6a7dc8bb4
Capitalisation
2019-03-28 21:13:12 +11:00
Andrew Murray
d5db62be7b
Added EXIF class
2019-03-28 21:13:12 +11:00
Hugo
ace5ba4418
Merge pull request #3701 from radarhere/photoshop
...
Read Photoshop resolution data
2019-03-28 11:55:13 +02:00
Glandos
5d8b14fc9e
Cache EXIF information
...
In case we need to call _getexif from the outside, since it's already called while parsing.
cache the result in self.info. This is compatible with other file using _getexif, like WebP.
2019-03-06 22:05:48 +01:00
Andrew Murray
636ad68f5e
Read Photoshop resolution data
2019-03-06 10:28:45 +11:00
Adrien CLERC
4a87e067a2
convert Jpeg to Mpo instead of re-reading everything
2019-02-15 22:08:31 +01:00
Hugo
4ccdbf25cf
Merge pull request #3584 from radarhere/ifd_offset
...
Seek to IFD offset
2019-02-12 18:10:25 +02:00
Andrew Murray
d1df192e81
Renamed "file" variable to "fp"
2019-02-05 20:30:44 +11:00
Jon Dufresne
a11fed32b3
Deprecate PIL.*ImagePlugin.__version__ attributes
...
Use PIL.__version__ instead.
2019-02-02 17:39:55 -08:00
Andrew Murray
0481d0ac1e
Seek to IFD offset
2019-01-16 06:55:37 +11:00
Hugo
c353225851
Prefer 'except Exception:' to bare 'except:'
2018-12-04 23:25:28 +02:00
Hugo
94c94eb1f7
flake8: E128 continuation line under-indented for visual indent
2018-11-11 19:01:11 +02:00
Andrew Murray
0adeb82e98
Changed Image size property to be read-only by default
2018-09-30 13:45:18 +10:00
Jon Dufresne
37f10651bd
Clean up commented out debug print statements
2018-09-04 20:02:42 -07:00
Andrew Murray
1648676435
Fixed typo [ci skip]
2018-08-09 20:54:16 +10:00
Andrew Murray
c2189235af
Line too long
2018-07-02 19:26:02 +10:00
Hugo
87d38a6dde
Merge pull request #2946 from hugovk/2944-exif
...
Only extract first Exif segment
2018-07-01 07:53:17 +03:00
Andrew Murray
62c870f5cf
Fixed raising of no exception
2018-06-12 04:41:31 +10:00
Konstantin Kopachev
1e9e64c8b0
Move jpeg-specific eof-processing to jpeg plugin
2018-03-06 22:52:08 -08:00
Andrew Murray
25e72d5856
Fixed typos
2018-01-24 21:54:16 +11:00
Hugo
8f88d6b60a
Only extract first Exif segment
2018-01-10 16:00:10 +02:00
wiredfool
0bb3f4fee9
source layout reorg
2017-12-28 14:49:47 +00:00