StereoscoPy icon indicating copy to clipboard operation
StereoscoPy copied to clipboard

Pillow 12.0.0 Issue

Open cmahnke opened this issue 3 months ago • 0 comments

PIL.ImageMath.eval() has been removed from Pillow 12.0.0

Traceback (most recent call last):
  File "/Users/cmahnke/Blogs/vintagereality/./scripts/./image-splitter.py", line 386, in <module>
    stereoscopy.create_anaglyph((left.copy(), right.copy()), method="gray").save(anagFileName)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/anaconda3/lib/python3.13/site-packages/stereoscopy/__init__.py", line 721, in create_anaglyph
    return am.createAnaglyph(images)
           ~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/opt/homebrew/anaconda3/lib/python3.13/site-packages/stereoscopy/__init__.py", line 679, in createAnaglyph
    ImageMath.eval("convert(" + expression + ", 'L')",
    ^^^^^^^^^^^^^^
AttributeError: module 'PIL.ImageMath' has no attribute 'eval'

cmahnke avatar Oct 16 '25 21:10 cmahnke