Andrew Murray

Results 764 comments of Andrew Murray

For the moment at least, https://github.com/python-pillow/Pillow/pull/8183 aims to move from Python 3.8 on Windows Server 2016 to Python 3.9 on 2019.

#8183 moved away from using Windows Server 2016, for the sake of an immediate way to drop support for Python 3.8. [It may or may not be possible](https://github.com/python-pillow/Pillow/issues/7910#issuecomment-2025661092) to install...

If I increase the number of loops to 1000, I find that the memory drops down again at a certain point. Since it is not continuously increasing, I don't think...

> It would probably be good to add gc.collect() (import gc) to the end of each loop. It might just not be running that often. I added `gc.collect()` in, but...

This may or may not help - in your original code you open an image and don't close it. It is recommended instead that you either call `img.close()` when you...

You may be interested to know that https://github.com/pypa/distutils/pull/209#issuecomment-1554669584 suggested dropping CygwinCCompiler instead.

> Given [Cygwin seems to use `UnixCCompiler` rather than `CygwinCCompiler`](https://github.com/pypa/setuptools/blob/e76db4408e40a5c0a218ef6f652454f69c5aca59/setuptools/_distutils/ccompiler.py#L1056-L1058), should we also drop `cygwinccompiler.py`? #185 similarly feels CygwinCCompiler isn't used, although thinks it should be.

Discussion in the CPython issue is saying that this is "[an expected and intentional behavior change](https://github.com/python/cpython/issues/118888#issuecomment-2104944287)", so the solution would be either this PR, or https://github.com/python-pillow/Pillow/pull/8057

My preference would be this one, to remove the exec()

I've created https://github.com/uclouvain/openjpeg/pull/1529 as the first step in saving JP2 CMYK images. Without the colour specification box of JP2, it doesn't seem possible to have a CMYK J2K image. https://community.intel.com/t5/Intel-Integrated-Performance/JPEG2000-and-CMYK-Data-Not-RGB/td-p/862891...