skip to navigation
skip to content

Not Logged In

django-ajaximage 0.1.15

Add ajax image upload functionality with a progress bar to file input fields within Django admin. Images are optionally resized.

Latest Version: 0.1.17

##Ajax file uploads

[https://github.com/bradleyg/django-ajaximage](https://github.com/bradleyg/django-ajaximage)

Add ajax image upload functionality with a progress bar to file input fields within Django admin. Images are optionally resized.

![screenshot](https://raw.github.com/bradleyg/django-ajaximage/master/screenshot.png)

```pip install django-ajaximage```

```python
# settings.py
AJAXIMAGE_DIR = 'ajaximage/' # (optional, default is 'ajaximage/')
AJAXIMAGE_PREPEND_MEDIA_URL = True # (optional, default is 'True')
```

```python
# urls.py
urlpatterns = patterns('',
    url(r'^ajaximage/', include('ajaximage.urls')),
)
```

```python
# models.py
from django.db import models
from ajaximage.fields import AjaxImageField

class Example(models.Model):
    thumbnail = AjaxImageField(upload_to='thumbnails'
                               max_height=200, #optional
                               max_width=200, # optional
                               crop=True) # optional

# if crop is provided both max_height and max_width are required
```
 
File Type Py Version Uploaded on Size
django-ajaximage-0.1.15.tar.gz (md5) Source 2013-08-21 59KB
  • Downloads (All Versions):
  • 66 downloads in the last day
  • 377 downloads in the last week
  • 1425 downloads in the last month