Andrew Murray
c2a42655e1
Allow get_child_images to access JPEG thumbnails
2022-12-06 19:30:53 +11:00
Mark Mayo
69baeccf2e
some pylint warnings
...
Fixed some pylint issues
2022-10-13 15:20:11 +13:00
Andrew Murray
c259ac492f
Parametrized tests
2022-10-03 16:57:42 +11:00
Hugo van Kemenade
d42efd7ec0
Update URL ( #16 )
2022-04-28 08:26:57 +10:00
Andrew Murray
ae8de77721
Raise ValueError when trying to save empty image
2022-03-28 21:18:53 +11:00
Andrew Murray
dae1f691c2
Updated checks that no warnings were raised
2022-02-21 13:49:01 +11:00
Andrew Murray
f8e4e9c2dd
Added enums
2022-01-15 09:02:31 +11:00
Andrew Murray
1059eb5376
If appended EOI did not work, do not keep trying
2022-01-01 21:04:32 +11:00
Hugo van Kemenade
31a96b9c9b
Upgrade Python syntax with pyupgrade --py36-plus and format with Black
2021-10-19 15:34:52 +03:00
Andrew Murray
98aa0f10ad
pre-commit autoupdate --freeze
2021-08-12 21:50:09 +10:00
Alexander Karpinsky
3abe5e884b
Add TypeError handling to pass corrupted dpi value in exif
2021-07-26 16:13:01 +03:00
Andrew Murray
d11c794997
Merge branch 'master' into 4962-jpeg-zigzag
2021-06-30 20:54:55 +10:00
Andrew Murray
0aa8bd00e7
Added warning if defusedxml is not found
2021-06-30 11:29:13 +10:00
Andrew Murray
d9d811ff21
Replaced xml.etree.ElementTree with defusedxml.ElementTree
2021-06-30 11:28:44 +10:00
Andrew Murray
a1d8d638bf
Checked complete length of value
2021-06-29 19:41:00 +10:00
Andrew Murray
cd31dae0d1
Added getxmp() for PNG
2021-06-12 13:57:14 +10:00
Andrew Murray
c1fbe2d975
Corrected getxmp() descending into XML
2021-06-12 11:58:11 +10:00
Andrew Murray
18e204df05
Removed DPI rounding from JPEG loading
2021-05-07 21:23:29 +10:00
Andrew Murray
6967f3519f
Test when "adobe_transform" is unable to be read
2021-04-20 20:53:50 +10:00
Andrew Murray
4351c37fc4
Corrected adobe_transform value
2021-04-15 21:49:51 +10:00
Eric Soroos
1c872a9eda
lint stuff
2021-04-10 16:58:01 +02:00
Eric Soroos
a3a69c8385
conditional mark for valgrind ignore
2021-04-09 23:53:24 +02:00
Andrew Murray
2c8684c525
Moved getxmp() into JpegImageFile
2021-04-01 22:28:37 +11:00
Andrew Murray
c52b45df62
Removed automatic retrieval of GPS IFD
2021-03-15 12:33:06 +11:00
Andrew Murray
3495b319bd
Replaced various instances of assert_image_similar with assert_image_similar_tofile
2021-02-21 22:22:29 +11:00
Andrew Murray
a5c251029c
Replaced various instances of assert_image_equal with assert_image_equal_tofile
2021-02-21 22:15:56 +11:00
Hugo van Kemenade
1857bf5570
Merge pull request #5259 from radarhere/warns
2021-02-17 21:31:15 +02:00
Andrew Murray
83542c42bf
Added context managers
2021-02-11 21:43:54 +11:00
Andrew Murray
4a0569e97f
Changed zero length assertions to falsy
2021-02-11 13:48:31 +11:00
Eric Soroos
1d7c8e03d0
known failing tests from valgrind -- uninitialized values
2021-01-07 14:52:02 +01:00
gofr
9980981c2e
De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables
...
Re-order the JPEG quantization tables to normal order when
loading. This wastes a few CPU cycles if you don't need them.
But it has the advantage of hiding the zigzag order JPEG
implementation detail of these tables completely from Pillow
users.
This difference has led to cases where:
* arrays in zigzag order were taken from a dict and passed
directly as a qtables parameter, causing them to be "zigzagged"
again by libjpeg.
* dicts with lists in normal order being passed to
JpegImagePlugin.convert_dict_qtables, causing them to be
unnecessarily "de-zigzagged".
2020-10-17 20:20:59 +02:00
gofr
d54dc4062f
fixup! Add tests for loading/saving of 16-bit quantization tables
2020-10-10 20:01:28 +02:00
gofr
2f0544b542
Add tests for loading/saving of 16-bit quantization tables
2020-10-10 18:53:49 +02: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
Andrew Murray
298b7d0333
Update pre-commit
2020-08-31 18:50:15 +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
Andrew Murray
e96109b93c
Added writing of subIFDs
2020-08-13 22:25:24 +10:00
Hugo van Kemenade
dd87dd50c0
Update to isort 5 with Black profile support
2020-08-08 22:39:29 +03: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
nulano
a324f4a466
add version to features info block
2020-06-21 18:58:39 +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
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
ccac9e1a3a
Changed to ImageFileDirectory_v2
2020-06-03 22:11:51 +10:00