Andrew Murray

Results 761 comments of Andrew Murray

When Pillow is reading an EPS image, it is actually just passing the image through Ghostscript. If I run `gs -q -g90x60 -r72.000000x72.000000 -dBATCH -dNOPAUSE -dSAFER -sDEVICE=ppmraw -sOutputFile=out.ppm -c 0...

> Additional, I find that transparency is always set to False. (Because EPS does not support transparency?). If you would like to load an EPS image with transparency, then you...

Is the image that you've provided one that could be included in our test suite, and distributed under our Pillow license? Or even better, are you able to provide a...

I've created PR #6499. With it, ```python from PIL import Image img = Image.open("EPS_Bitmap.eps") print(img.mode, img.size) # 1 (100, 67) ``` Does that resolve this?

If you're looking for an immediate solution, you could patch Pillow. Using [one of our test fonts,](https://github.com/python-pillow/Pillow/blob/main/Tests/fonts/NotoSansJP-Regular.otf) ```python from PIL import ImageFont ImageFont.load_default = lambda: ImageFont.truetype("Tests/fonts/NotoSansJP-Regular.otf") ``` In context, ```python...

What do you think of this interface for setting a default font? ```python from PIL import ImageDraw, ImageFont ImageDraw.ImageDraw.font = ImageFont.truetype("Tests/fonts/FreeMono.ttf", 120) ``` I've created PR #6484 with this change.

Could we get a self-contained example? A block of code that we can run, by itself, without any inputs (or with those inputs attached), to demonstrate the error? And you're...

If you aren't able to post a self-contained example, could we just get a copy of relevant lines of code where you call Pillow and tensorflow?

Testing with ```python from PIL import Image import tensorflow as tf im = Image.new("L", (1, 1)) tf.reshape(im, (1, 1)) ``` I find that it #6394 is what caused the change....

I've created https://github.com/tensorflow/tensorflow/issues/56723 to try and see if TensorFlow is interested in supporting `__array_interface__`.