i2/issues"> Issues 0 Pull Requests 0 Commits 514 Releases 0

拍爱

thumbnail_utils.py 532B

    # -*- coding: utf-8 -*- from __future__ import division try: from PIL import Image except ImportError: import Image def make_thumbnail(im_path, im_thumbnail_path=None, max_width=360): im = Image.open(im_path) width, height = im.size thumb_width = min(max_width, width) thumb_height = height / width * thumb_width im.thumbnail((thumb_width, thumb_height), Image.ANTIALIAS) im.save(im_thumbnail_path or im_path, im.format or 'JPEG', quality=90) return width, height, thumb_width, thumb_height
kodo - Gogs: Go Git Service

Nav apraksta

huangqimin001: e7da55aaf2 :art: Add complement_code 5 gadi atpakaļ
..
migrations 1854038416 记录删除销售员和用户的提交记录 5 gadi atpakaļ
__init__.py 5f83fed5ab :art: Opt del_clerk_sale_submit_api 6 gadi atpakaļ
admin.py e7da55aaf2 :art: Add complement_code 5 gadi atpakaļ
apps.py 5f83fed5ab :art: Opt del_clerk_sale_submit_api 6 gadi atpakaļ
models.py e7da55aaf2 :art: Add complement_code 5 gadi atpakaļ
tests.py a5595665af :art: Format Codes 6 gadi atpakaļ
views.py a5595665af :art: Format Codes 6 gadi atpakaļ