Git Product home page Git Product logo

django_imagequery's Introduction

With ImageQuery you are able to write image manipulations without needing
to learn some low-level API for the most use cases. It allows you to:
 * simple manipulation like rescaling
 * combining images
 * handling text (note: fonts must be available locally)
 * even more like creating drop shadows (using the alpha mask)

ImageQuery basicly provides an API similar to the well known QuerySet API,
which means:
 * Most methods just return another ImageQuery
 * Every bit of your image manipulation chain can be used/saved
 * Image manipulations are lazy, they are only evaluated when needed

Some examples:

# load the image
iq = ImageQuery('some/file.png')
# scale it to 100x200 max
iq = iq.scale(100, 200)
iq.save('scaled/version.png')
# save the scaled version including a simple watermark
# note: this does not chenge "iq"
iq.paste('watermark.png', 'center', 'center').save('watermarked/version.png')
# create a grayscale version (without watermark of course)
iq = iq.grayscale()
iq.save('scaled_grayscale/version.png')

In addition ImageQuery provides some nice tools to make handling images
even more easy:
 * support for Django storage API
 * base class to manage multiple image formats
 * included template tags (using formats) and filters (lowlevel)

django_imagequery's People

Contributors

ddanier avatar gregmuellegger avatar

Watchers

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

Forkers

zypro

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.