tkhtmlview icon indicating copy to clipboard operation
tkhtmlview copied to clipboard

Unable to resize images

Open Banalian opened this issue 1 year ago • 0 comments

Hi!

Thanks a lot for this widget, it helped a lot!

I have a small issue with the img tag. When I try to use the width param to resize my image to fit the frame/widget, the image won't appear, because an exception occurs.

The exception is "module PIL.Image has no attribute "ANTIALIAS"" ( Line 562 of html_parser.py)

From my quick search, it looks like it doesn't exist indeed, and the function is waiting for something else, perhaps a choice in the enum "Resampling" ?

I've read that you're rewriting the module from scratch, so I don't know if you wish to fix this, but I still wanted to report it just in case😄

Once again, thanks a lot for this 😄!

Have a good day, Banalian

Banalian avatar Sep 11 '24 19:09 Banalian