We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 007ee62 commit 0a44246Copy full SHA for 0a44246
Tests/test_file_eps.py
@@ -180,7 +180,7 @@ def test_load_long_binary_data(prefix: bytes) -> None:
180
data = io.BytesIO(prefix + b"\n".join(simple_eps_file_with_long_binary_data))
181
with Image.open(data) as img:
182
img.load()
183
- assert img.mode == "RGB"
+ assert img.mode == "1"
184
assert img.size == (100, 100)
185
assert img.format == "EPS"
186
src/PIL/EpsImagePlugin.py
@@ -121,7 +121,7 @@ def Ghostscript(
121
lengthfile -= len(s)
122
f.write(s)
123
124
- device = "pngalpha" if transparency else "ppmraw"
+ device = "pngalpha" if transparency else "pnmraw"
125
126
# Build Ghostscript command
127
command = [
0 commit comments