Andrew Murray
Andrew Murray
#3838 has been merged.
It turns out that this situation is more complicated. See https://github.com/python-pillow/Pillow/pull/3838#discussion_r292114051
#4044 also reports this issue for I to RGBA conversion, and #5642 for I to RGB conversion.
This issue is more complex to resolve than I initially thought, and there is [not even a consensus that it should be fixed](https://github.com/python-pillow/Pillow/issues/5403#issuecomment-840846709).
Hi. While there is not a solution at present, you will be able to find some discussion about this problem in #367
Hi. If I modify my Image.py like so ```diff diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 6ecd5fac8..bdb8f4af7 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -2982,6 +2982,8 @@ def open(fp, mode="r", formats=None): # Leave...
Here are some thoughts for you. We allow the compression level to be set when saving PNGs - if I change your code to `image.save("tmp1.png", compress_level=1)` on my machine, Pillow...
No, it's not macOS specific. I am also a macOS user.
Doing a basic investigation, I found that https://github.com/python-pillow/Pillow/blob/7ff05929b665653de4b124929cb50e59ccf5c888/src/libImaging/ZipEncode.c#L279 is where most of the time is spent. I thought maybe changing a setting in `deflateInit2` could be improve the situation, but...