algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
228 stars 51 forks source link

tests/input/svg/test_svg.py test_to_jpeg fails with wand backend. #115

Closed JulienPalard closed 2 years ago

JulienPalard commented 4 years ago

Related to #113 (read first). I'm getting:

        with Image.open(path_to_file) as jpeg:
            assert jpeg.height == 256
>           assert jpeg.width in range(358, 360)
E           assert 181 in range(358, 360)
E            +  where 181 = <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=181x256 at 0x7FEA731BC870>.width
E            +  and   range(358, 360) = range(358, 360)

This one is really strange, the input svg looks in portrait mode, but the test expect the thumbnail to be in landscape mode?

inkhey commented 2 years ago

this has been fixed with the improved wand backend #253