Django SizedImageField
What is it ?
SizedImageField is a Django field which will automatically resize image to fit a defined dimension. Because it inherits from ImageField, all the usual ImageField attributes are available. It uses PIL which is already a requirement to use Django ImageField.
Example
from sizedimagefield.fields import SizedImageField
class Article(models.Model):
thumbnail = SizedImageField('thumbnail', width=150, height=150, upload_to='articles/')
Compatibilities
It has only been tested with Django 1.11 and Python 3.6.
Installation
Installing from pypi (using pip).
pip install django-sizedimagefield
Installing from github.
pip install -e git://github.com/makinacorpus/django-sizedimagefield.git#egg=django-sizedimagefield
Add sizedimagefield in your INSTALLED_APPS:
INSTALLED_APPS = [
'sizedimagefield',
[...]
]
The application doesn’t have any special requirement.
Licensing
Please see the LICENSE file.
Contacts
CHANGELOG
0.1.1
Fixed installation
0.1
** New **
Initial release
Metadata
Release files for django-sizedimagefield 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-sizedimagefield-0.1.1.tar.gz | 2.5 kB | Without provenance | Details for django-sizedimagefield-0.1.1.tar.gz |
Release files / django-sizedimagefield-0.1.1.tar.gz
| Download URL | django-sizedimagefield-0.1.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a486da0e5f11593660c767c127824e9ff5606da79c85f237b060eb1046aea11a
|
|
BLAKE2b-256 checksum How to use checksums |
d92e5720ee5d0ad90ff84e416f291e0b12d5deed2a45c6e820c950f6529019b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-sizedimagefield 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.