Giter Club home page Giter Club logo

flask-avatars's People

Contributors

greyli avatar sweetpotatoman avatar toranova avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flask-avatars's Issues

[Feature Request] 为Gravatars服务设置镜像

目前flask-avatars仅支持从本地和默认的gravatar服务加载头像,但是国内已经有了v2ex等网站提供的镜像服务,所以能否提供从用户指定的镜像加载gravatar的服务,从而节省一定的服务器开销呢?

Avatar crop

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?

上传图片如果分辨率很大,则crop并resize的图片质量下降明显

插件中AVATARS_CROP_BASE_WIDTH默认是500px,如果用户上传很大分辨率的图片,并且只裁剪很小的一块图片,插件在crop前会先resize原图,然后才crop并resize图片。
这样的隐患是resize的图片分辨率降下来以后,再crop就会导致最终图片质量很低。
解决方法是,crop之前先不要resize,x/y/w/h根据比例计算。这样crop的效果更好些。

Fixed Aspect ratio

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.