Commit Graph

93 Commits

Author SHA1 Message Date
Yay295
3ccecd91ce convert eps using pnmraw instead of ppmraw
This lets Ghostscript choose the best device to use (pbmraw, pgmraw, ppmraw) based on the image data.
2024-09-30 08:23:27 -05:00
Andrew Murray
eae107ceb2
Merge branch 'main' into type_hint_init 2024-08-28 08:31:09 +10:00
Andrew Murray
53bbfea763 Added type hints 2024-08-26 23:49:03 +10:00
Andrew Murray
497080f63b Added type hint to ImageFile._save tile parameter 2024-08-15 07:30:01 +10:00
Andrew Murray
4d0e8e74b4 Use im property 2024-08-10 10:20:08 +10:00
Andrew Murray
8f1157a61d Added type hints to Image.__init__() 2024-08-02 23:30:27 +10:00
Andrew Murray
accfaf1c09 Added type hints 2024-07-30 20:20:09 +10:00
Andrew Murray
01529d8b09 Added type hints 2024-07-15 19:23:36 +10:00
Andrew Murray
f3c3e52797
Added type hints (#8204)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-07-05 11:55:23 -06:00
Hugo van Kemenade
2a660bbe9f Remove PSFile class, deprecated in Pillow 9.5.0 2024-07-01 10:58:27 +03:00
Yay295
065aeaea47 improve check_required_header_comments() description
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-06-24 08:54:33 -05:00
Yay295
a2c0a90c44 check required EPS header comments at end of file, not always 2024-06-22 09:33:20 -05:00
Andrew Murray
1eb960f7e3 Added type hints 2024-06-11 23:26:00 +10:00
Andrew Murray
6e40601f69 Added type hints 2024-06-04 20:37:09 +10:00
Andrew Murray
e419fd7ab4 Added type hints 2024-05-15 20:19:09 +10:00
Andrew Murray
6036d81d97 Added type hints 2024-05-04 20:51:54 +10:00
Andrew Murray
48b270590c accept returns bool or str 2024-04-06 18:31:08 +02:00
Hugo van Kemenade
9ad22fc96a
Merge pull request #7753 from radarhere/eps 2024-03-11 17:51:29 +02:00
Hugo van Kemenade
80fd507335
Merge pull request #7713 from radarhere/load 2024-03-11 17:34:38 +02:00
Andrew Murray
6d78d42769 Added type hints 2024-03-02 13:12:17 +11:00
Andrew Murray
5721577e4e Stop reading EPS at EOF marker 2024-01-25 20:20:53 +11:00
Andrew Murray
2fbd7dda83 Use consistent arguments for load_seek 2024-01-13 21:10:02 +11:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Aarni Koskela
126bc44e9e Fix up most noqas
Update Tests/bench_cffi_access.py

Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-11-12 13:47:52 +02:00
Aarni Koskela
0c705692ea Remove old commented-out code 2023-11-06 21:21:07 +02:00
Aarni Koskela
9e615b6ad3 Add noqas for UP031 2023-11-06 12:43:14 +02:00
Hugo van Kemenade
0a432541ae
Merge pull request #7392 from radarhere/eps 2023-10-05 09:27:06 -06:00
Andrew Murray
43e6826199
Merge pull request #7382 from nopperl/parse-eps-trailer
Read bounding box information from the trailer of EPS files if specified
2023-10-02 09:53:35 +11:00
Andrew Murray
620098571a
Corrected comment priority 2023-09-30 07:54:39 +00:00
Hugo van Kemenade
0d1e83098d Add pyupgrade to pre-commit 2023-09-25 16:45:38 +03:00
Andrew Murray
d919942f8e Last trailer comment has priority 2023-09-22 18:36:52 +10:00
Andrew Murray
9de4b72c97 Trailer is not in header, ImageData or itself 2023-09-22 18:26:50 +10:00
Andrew Murray
094f23dd5c EOF ends not just the trailer, but also the file 2023-09-22 18:26:41 +10:00
Andrew Murray
8064adad7a Reduced duplicate code 2023-09-22 17:58:11 +10:00
Andrew Murray
a84a43528e Added gs_binary to control Ghostscript use on all platforms 2023-09-12 19:46:46 +10:00
Andrew Murray
f225130ee5 Only search for Ghostscript Windows binary when needed 2023-09-12 19:08:30 +10:00
pre-commit-ci[bot]
794a1d7ff2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-07 18:36:32 +00:00
nopperl
12d8b439d5 Read bounding box information from the trailer of EPS files if specified 2023-09-07 20:20:35 +02:00
Andrew Murray
9979a822c7 Changed Image mode property to be read-only by default 2023-07-29 09:28:18 +10:00
Hugo van Kemenade
0c7061e7e4
Merge pull request #7056 from radarhere/eps 2023-06-13 19:47:55 +03:00
Andrew Murray
3b65261c96 Remove temporary file when error is raised 2023-06-06 17:54:55 +10:00
Andrew Murray
2203afeafa Do not set size unnecessarily if image failed to open 2023-04-01 19:36:06 +11:00
Yay295
60b717a94b add link to %ImageData definition
and remove empty comment lines
2023-03-02 15:27:06 -06:00
Yay295
4f9c3847e8 notes about %ImageData, and use better var names 2023-03-02 15:02:53 -06:00
Yay295
0f27ddafb7 split long line 2023-02-07 13:56:38 -06:00
Yay295
99b153c9ca
hyphenate "backwards-compatibility"
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-02-07 13:49:00 -06:00
Yay295
bd0fac80c4 deprecate EpsImagePlugin.PSFile 2023-02-06 17:26:05 -06:00
Yay295
be9aea35a8 add eps test for bad BoundingBox, good ImageData 2023-02-06 17:26:04 -06:00
Yay295
651b3521ac
Merge branch 'main' into eps_plugin_perf 2023-01-11 11:29:22 -06:00
Andrew Murray
7f57c93b89 Only read when necessary 2023-01-11 08:50:20 +11:00