pdf.py 文件源码

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

项目:postix 作者: c3cashdesk 项目源码 文件源码
def scale_image(fileish, width: int) -> Image:
    """ scales image with given width. fileish may be file or path """
    img = utils.ImageReader(fileish)
    orig_width, height = img.getSize()
    aspect = height / orig_width
    return Image(fileish, width=width, height=width * aspect)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号