-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
What did you do?
I loaded a PCX file and used the show() command. Note, I got the same issue if trying to write file as png but I figured .show() was easier to demonstrate?
What did you expect to happen?
A non smeared version of the image. (example converted in GIMP)
What actually happened?
Loading a PCX file gave me a smeared result of the image. Possibly an issue with loading the different planes?
What are your OS, Python and Pillow versions?
- OS: Windows 10
- Python: 3.13.3
- Pillow: 11.2.1
> uv run python -m PIL.report
--------------------------------------------------------------------
Pillow 11.2.1
Python 3.13.3 (main, Apr 9 2025, 04:04:49) [MSC v.1943 64 bit (AMD64)]
--------------------------------------------------------------------
Python executable is .....\.venv\Scripts\python.exe
Environment Python files loaded from \.venv
System Python files loaded from ...\AppData\Roaming\uv\python\cpython-3.13.3-windows-x86_64-none
--------------------------------------------------------------------
Python Pillow modules loaded from ....\.venv\Lib\site-packages\PIL
Binary Pillow modules loaded from ......\.venv\Lib\site-packages\PIL
--------------------------------------------------------------------
--- PIL CORE support ok, compiled for 11.2.1
--- TKINTER support ok, loaded 8.6
--- FREETYPE2 support ok, loaded 2.13.3
--- LITTLECMS2 support ok, loaded 2.17
--- WEBP support ok, loaded 1.5.0
*** AVIF support not installed
--- JPEG support ok, compiled for libjpeg-turbo 3.1.0
--- OPENJPEG (JPEG2000) support ok, loaded 2.5.3
--- ZLIB (PNG/ZIP) support ok, loaded 1.3.1.zlib-ng, compiled for zlib-ng 2.2.4
--- LIBTIFF support ok, loaded 4.7.0
*** RAQM (Bidirectional Text) support not installed
*** LIBIMAGEQUANT (Quantization method) support not installed
*** XCB (X protocol) support not installed
--------------------------------------------------------------------
#!/usr/bin/env python3
import logging
logging.root.setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)
from PIL import Image
with Image.open("../pillow-bug/KEY.WR.PCX") as img:
img.show()
with Image.open("../pillow-bug/key-correct.png") as img:
img.show()
Use attached images:
(Note: example images are from the shareware version of Word Rescue. I hope that's okay.)
Metadata
Metadata
Assignees
Labels
No labels

