flask-avatars
flask-avatars copied to clipboard
All avatar generators in one place.
https://github.com/fengyuanchen/cropperjs
Hello, thanks for this package. it's great. Is there any way to set up a fixed aspect ratio (not squared)? I see that Jcrop supports it, but how to implement...
The flask-avatar module crops images thrice(s,m and l )which is totally bad. Is there any way to only have one cropped image saved excluding the three plus the original image?
Maybe use [Unavatar](https://unavatar.now.sh/).
插件中AVATARS_CROP_BASE_WIDTH默认是500px,如果用户上传很大分辨率的图片,并且只裁剪很小的一块图片,插件在crop前会先resize原图,然后才crop并resize图片。 这样的隐患是resize的图片分辨率降下来以后,再crop就会导致最终图片质量很低。 解决方法是,crop之前先不要resize,x/y/w/h根据比例计算。这样crop的效果更好些。
目前flask-avatars仅支持从本地和默认的gravatar服务加载头像,但是国内已经有了v2ex等网站提供的镜像服务,所以能否提供从用户指定的镜像加载gravatar的服务,从而节省一定的服务器开销呢?
你好,运行Flask-Avatars中examples/crop裁剪出来的头像,L尺寸是150*150的,但是M是60*59,s是30*29的,L和M尺寸都少了一个像素。