Snippet List
Read the image url as base64 in django, this snippet usefull if you using the `django-easy-pdf` to solve this issue https://github.com/nigma/django-easy-pdf/issues/53
Usage example:
```
<img src="{{ profile.photo.url|read_image_as_base64 }}">
```
- django
- image
- templatetags
- base64
- imagepreview
This widget allows you to display preview images with adjustable width and length of the link:
[example](http://img526.imageshack.us/img526/6588/screenshotat20111026215.png)
AdvancedFileInput(preview=True, image_width=200)
For other files, you can adjust the length of the link without preview:
[example](http://img845.imageshack.us/img845/6588/screenshotat20111026215.png)
AdvancedFileInput(preview=False, url_length=30)
by default, parameters are:
preview = True
url_length = 30
image_width = 200
- imagefield
- preview
- imagepreview
- previews-on-imagefield
2 snippets posted so far.