imgix-python是一个客户端库,用于使用生成图像URL。
宽度范围
宽度公差
探索目标宽度
与UTF-8配合使用
ixlib参数
测验
执照
安装
pip install imgix
用法
要开始创建imgix URL,请导入imgix库并创建URL构建器。 URL构建器可以重复使用,以为其提供的域上的任何图像创建URL。
>> > from imgix import UrlBuilder
>> > ub = UrlBuilder ( "demo.imgix.net" , include_library_param = False )
>> > ub . create_url ( "bridge.png" , { 'w' : 100 , 'h' : 100 })
'https://demo.imgix.net/bridge.png?h=100&w=100'
默认情况下启用
评论0
最新资源