Andrew Murray
af7954bc6f
Merge branch 'main' into progress
2025-03-06 07:57:45 +11:00
pre-commit-ci[bot]
955d678ca2
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2025-02-03 17:36:01 +00:00
Andrew Murray
8b4b7ce7dd
Merge branch 'main' into progress
2024-07-16 20:05:10 +10:00
Andrew Murray
6883018725
Added type hint
2024-07-06 22:06:47 +10:00
Andrew Murray
486dac7efc
Added type hints
2024-07-06 19:17:23 +10:00
Andrew Murray
26e2a9f29c
Merge branch 'main' into progress
2024-07-03 18:26:35 +10:00
Hugo van Kemenade
51bd7d2ea8
Drop support for Python 3.8 ( #8183 )
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-03 00:44:45 -06:00
Andrew Murray
14560e1770
Merge branch 'main' into progress
2024-03-12 08:24:49 +11:00
Andrew Murray
5ff7d926fd
Added type hints
2024-02-17 15:00:38 +11:00
Andrew Murray
b7a5b5984b
Updated tests for os.path.realpath
2024-02-12 19:24:01 +11:00
Andrew Murray
344c300597
Merge branch 'main' into progress
2024-01-31 22:00:55 +11:00
Hugo van Kemenade
4a4b90c365
Autotype tests ( #7756 )
...
* autotyping: --none-return
* autotyping: --scalar-return
* autotyping: --int-param
* autotyping: --float-param
* autotyping: --str-param
* autotyping: --annotate-named-param tmp_path:pathlib.Path
2024-01-31 20:12:58 +11:00
Andrew Murray
69680db24d
Merge branch 'main' into progress
2024-01-21 14:44:29 +11:00
Hugo van Kemenade
53c3cd9f8e
isort Tests
2024-01-20 13:23:03 +02:00
Andrew Murray
19c2721931
Merge branch 'main' into progress
2023-12-22 23:56:40 +11:00
Hugo van Kemenade
43b2f61e79
Add 'from __future__ import annotations' using Ruff/isort
2023-12-21 13:13:31 +02:00
Andrew Murray
fe7c9d37c8
Moved progress code into common private method
2023-10-06 19:45:21 +11:00
Andrew Murray
b5f322831a
Restored filename in progress callback
2023-10-05 18:40:01 +11:00
Andrew Murray
3465a598e2
Pass back index of image in sequence, instead of filename
2023-10-02 18:33:48 +11:00
Andrew Murray
6850465d54
Added progress callback when save_all is used
2023-10-02 15:44:43 +11:00
Andrew Murray
73bd40babe
Test for relevant characters before and after "SMask"
2023-08-07 20:49:29 +10:00
Andrew Murray
a70ea82eb5
Write P transparency as SMask
2023-08-07 13:53:19 +10:00
Andrew Murray
0a0a3fc51f
Added saving LA images as PDFs
2023-07-22 20:16:45 +10:00
Andrew Murray
36ee817329
Merge branch 'main' into pdf
2023-03-12 23:31:26 +11:00
Andrew Murray
be489287d2
Parametrized test
2023-02-23 12:44:38 +01:00
Jasper van der Neut
36bcc0a898
Support saving PDF with different X and Y resolution.
...
Add a `dpi` parameter to the PDF save function, which accepts
a tuple with X and Y dpi.
This is useful for converting tiffg3 (fax) images to pdf,
which have split dpi like (204,391), (204,196) or (204,98).
2023-02-21 11:49:05 +01:00
pre-commit-ci[bot]
24183d652e
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-02-06 19:27:19 +00:00
Andrew Murray
642d574087
Added JPXDecode for RGBA images
2023-02-02 21:48:47 +11:00
Andrew Murray
2803304763
Skip timeout checks on slower running valgrind job
2022-12-31 13:47:07 +11:00
Andrew Murray
fa71b11073
Revert "Temporarily skip valgrind failure"
...
This reverts commit a3e61c1f89
.
2022-10-29 12:02:07 +03:00
Andrew Murray
c259ac492f
Parametrized tests
2022-10-03 16:57:42 +11:00
Hugo van Kemenade
b953f73548
Merge pull request #6518 from radarhere/pdf_ccittfaxdecode
2022-08-31 13:55:46 +03:00
Andrew Murray
a3e61c1f89
Temporarily skip valgrind failure
2022-08-23 09:16:40 +10:00
Andrew Murray
3b4ea7c602
Do not use CCITTFaxDecode filter if libtiff is not available
2022-08-22 19:57:33 +10:00
Andrew Murray
f5b27f90f7
Save 1 mode PDF using CCITTFaxDecode filter
2022-08-01 20:38:47 +10:00
Hugo van Kemenade
a715bf2d6f
[Test] function name should be snake_case
2022-04-11 15:29:01 +03:00
Hugo van Kemenade
d3c9a6504e
Variable in function should be snake_case
2022-04-10 23:55:16 +03:00
Hugo van Kemenade
dd8049363e
Use more specific regex chars to prevent ReDoS - exclude carriage return
2021-12-28 10:22:39 +11:00
Andrew Murray
bc935f9970
Do not round dimensions when saving PDF
2021-05-01 12:13:09 +10:00
Andrew Murray
d62be3e354
Switched to saving 1-bit PDFs with DCTDecode
2021-04-22 22:16:21 +10:00
wiredfool
fe668716ed
Merge pull request #5397 from wiredfool/valgrind_fixes
...
Valgrind fixes
2021-04-10 19:15:17 +01: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
Hugo van Kemenade
bde149be38
Add test for CVE-2021-25292 ReDoS
2021-04-08 23:53:22 +03:00
Eric Soroos
a6fa139f62
useless reptile
2021-01-07 14:57:49 +01:00
Eric Soroos
1d7c8e03d0
known failing tests from valgrind -- uninitialized values
2021-01-07 14:52:02 +01:00
Hugo van Kemenade
dd87dd50c0
Update to isort 5 with Black profile support
2020-08-08 22:39:29 +03:00
Hugo
dda6145fce
Since Python 3.3 IOError and WindowsError have been merged into OSError
2020-04-10 12:57:29 +03:00
Andrew Murray
7ff2db143d
Removed use of PillowTestCase
2020-03-23 07:05:51 +11:00
Andrew Murray
8482919a37
Converted most assert statements to pytest
2020-02-23 00:06:21 +11:00