Page 1 of 1

Error when fitting image into window

Posted: Thu Dec 26, 2024 7:55 pm
by Brother Mike
Hi Tim. Hoping this message finds you well, and hope you had a blessed Christmas.

When in the BA image viewer. When I try to fit an image with any option other than 1:1 I get an error dialog. This occurs with included images or my own (I just added some images from an atlas i received as a gift) and get the error on any image.

As always, in Christ, and thank you.

Code: Select all

[<baseClass.HtmlWindow object at 0x72fa8457cd40>
excepthook

*** Thu Dec 26 16:46:38 2024 ***
Traceback (most recent call last):
  File "/opt/bibleanalyzer/ba-561.zip/imgViewer.py", line 677, in OnFitAll
    img.thumbnail((winSize[0] -offset, winSize[1] -offset), Image.ANTIALIAS)
                                                            ^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

excepthook

*** Thu Dec 26 16:47:02 2024 ***
Traceback (most recent call last):
  File "/opt/bibleanalyzer/ba-561.zip/imgViewer.py", line 745, in OnFitSide
    img.thumbnail((NewW, NewH), Image.ANTIALIAS)
                                ^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

['id', 'title', 'imageData']
excepthook

*** Thu Dec 26 16:47:19 2024 ***
Traceback (most recent call last):
  File "/opt/bibleanalyzer/ba-561.zip/imgViewer.py", line 677, in OnFitAll
    img.thumbnail((winSize[0] -offset, winSize[1] -offset), Image.ANTIALIAS)
                                                            ^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

['id', 'title', 'imageData']
['id', 'title', 'imageData']
saving settings
/code]

Re: Error when fitting image into window

Posted: Thu Dec 26, 2024 10:38 pm
by Tim
I'll fix this, thanks.