Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

jQuery Resize And Crop (jrac): visually resize an image and place a crop

Project description


Django 1.3 or later


$ pip install django-jquery


Add 'django.contrib.staticfiles', 'jquery', 'jquery_ui', and 'jrac' to INSTALLED_APPS in your

    # ...


    # ...

Make sure you use 'collectstatic' to copy installed files to your static folder:

$ python collectstatic

Refer to Django static files documentation for additional information.


You can refer to jquery in your template with:

{{ STATIC_URL }}js/jquery.jrac.js

Custom widget:

class MyWidget(forms.TextInput):
    class Media:
        js = ('js/jquery.jrac.js',)

    def render(self, name, value, attrs=None):
        html = super(MyWidget, self).render(name, value, attrs=attrs)
        # ...
        return html


Use the minified jquery.jrac.min.js instead of jquery.jrac.js


Check out the demo.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-jrac, version 1.0.2.dev10
Filename, size File type Python version Upload date Hashes
Filename, size django-jrac-1.0.2.dev10.tar.gz (18.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page