helloflask / flask-avatars Goto Github PK
View Code? Open in Web Editor NEWAll avatar generators in one place.
Home Page: https://flask-avatars.readthedocs.io/en/latest/
License: MIT License
All avatar generators in one place.
Home Page: https://flask-avatars.readthedocs.io/en/latest/
License: MIT License
目前flask-avatars仅支持从本地和默认的gravatar服务加载头像,但是国内已经有了v2ex等网站提供的镜像服务,所以能否提供从用户指定的镜像加载gravatar的服务,从而节省一定的服务器开销呢?
插件中AVATARS_CROP_BASE_WIDTH默认是500px,如果用户上传很大分辨率的图片,并且只裁剪很小的一块图片,插件在crop前会先resize原图,然后才crop并resize图片。
这样的隐患是resize的图片分辨率降下来以后,再crop就会导致最终图片质量很低。
解决方法是,crop之前先不要resize,x/y/w/h根据比例计算。这样crop的效果更好些。
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 it in flask-avatars? Thanks
Maybe use Unavatar.
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?
你好,运行Flask-Avatars中examples/crop裁剪出来的头像,L尺寸是150150的,但是M是6059,s是30*29的,L和M尺寸都少了一个像素。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.