Andrew Murray
Andrew Murray
Like `im.save("out.vtf", compression=...)`? Yes. Those arguments will become part of the `im.encoderinfo` dictionary.
> @radarhere Do I need to encode the image row-by-row or i can go like 4 rows at once because Bcn works in blocks of 4 by 4 pixels? I...
Feel free
Slightly confused - this PR is still a draft, but you'd like a review? Also, your lint problems could be resolved by just using the black formatting - https://github.com/REDxEYE/Pillow/pull/2. Is...
This might be a libavif bug, but I find that if I run this PR, libavif has [stopped working](https://github.com/radarhere/Pillow/runs/2201531959#step:9:525) for macOS. https://github.com/radarhere/Pillow/runs/2201531959#step:8:1174 > /Users/runner/work/Pillow/Pillow/depends/libavif-0.8.4/ext/libyuv/include/libyuv/row.h:750:5: error: 'LIBYUV_UNLIMITED_DATA' is not defined, evaluates...
As a general answer, if you would like Pillow to place the image contents in a variable rather than saving to file, ```python from PIL import Image import io fp...
Partly just for a clearer picture of what you're after, could you explain why `getcolors()` doesn't solve the problem? ```python from PIL import Image im = Image.new("RGB", (100, 100), "#f00")...
Okay, I've added a commit. See what you think
Taking your code, I find that `fromarray` with L looks as you described, but if I omit the mode, it looks fine. Does this look okay for you? If not,...
> `fromarray` by default should read data as `RGB` What leads you to this conclusion? https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.fromarray > mode – Mode to use (will be determined from type if None) See:...