pillow_transcoder_tests.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:loris-redux 作者: jpstroop 项目源码 文件源码
def test_execute(self, transcoder, region_test_jpg):
        image_request = Mock(
            file_path = region_test_jpg,
            region_request_type = FULL,
            region_pixel_x = 0,
            region_pixel_y = 0,
            region_pixel_w = 6000,
            region_pixel_h = 8000,
            size_request_type=FULL,
            width = 6000,
            height = 8000,
            mirror = False,
            rotation = 0.0,
            quality = 'default',
            format='jpg'
        )
        stream = transcoder.execute(image_request)
        pillow_image = parse_stream(stream)
        assert pillow_image.size == (6000,8000)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号