You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test case test_galleries.py will fail, due to this error:
tests/test_galleries.py:45: in test_thumbnail_generation
self.assertEqual(os.path.normpath(thumb_image.lstrip("/")), thumb_name)
E AssertionError: 'image.jpg' != '.thumbnails/image.jpg/image-24x24.jpg'
E - image.jpg
E + .thumbnails/image.jpg/image-24x24.jpg
On investigation, this turns out to be in the final step of thumbnail where the image is saved, which gives this exception (when traceback is printed):
Traceback (most recent call last):
File "/workspace/mezdev/mezzanine/mezzanine/core/templatetags/mezzanine_tags.py", line 451, in thumbnail
image = ImageOps.fit(image, to_size, Image.ANTIALIAS, 0, to_pos)
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
Is there an existing issue for this?
Current Behavior
The test case test_galleries.py will fail, due to this error:
On investigation, this turns out to be in the final step of
thumbnail
where the image is saved, which gives this exception (when traceback is printed):The name ANTIALIAS was removed in PIL 10.0.0 and should be replaced with LANCZOS (ref: https://stackoverflow.com/a/76616129/653093 )
Expected Behavior
Test case to pass
Steps To Reproduce
Run the test_galleries.py test case
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: