Giter VIP home page Giter VIP logo

imageresizer's Introduction

jinageresizer (Jin's image resizer) Deploy


Build Status Coverage Status Gitter

jinageresizer is a image resizing service using flask, imagemagick and wand inspired by firesize

Current url Scheme

base_url/image_url/?rwidth=resize_width_in_px&rheight=resize_height&type=jpg|png Example: https://images.jinpark.net/http://i.imgur.com/AMTTUDK.jpg/?rwidth=300&type=png

Only the image_url is required. The query params are all optional.

If width and height are given, aspect ratio is not preserved. If only width or height is given, aspect ratio is preserved and the non specified variable is modified to fit the aspect ratio.

I highly suggest putting this behind a cdn to allow for edge caching so the server is not reprocessing the same image again and again. If you are using cloudflare, as I am, you might need to force cloudflare to cache everything using page rules, since the resulting url is usually not one of the automatic cached extensions.

TO DO

  • Add cropping (with gravity)

imageresizer's People

Contributors

jinpark avatar

Watchers

 avatar

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.