==============
[Croppic](http://croppic.net/) is a jquery plugin which handles uploading and manipulating images via AJAX.
A Django package which uses [Croppic](http://croppic.net/) to upload and crop images.
Installation
============
Install from pypi:
pip install django-croppic
To use `django-croppic` in your Django project:
1. Add `croppic` to your `INSTALLED_APPS` setting.
2. Add `croppic.urls` in your main `urls`
* `url(r'^croppic/', include('croppic.urls', namespace='croppic')),`
3. Run `syncdb` command to initialise the `croppic` database table
4. Run `collectstatic` command to collect the static files of croppic into `STATIC_ROOT` (If on production)
Configuration
=============
Available settings:
* `CROPPIC_UPLOAD_PATH`
* Default: `pictures`
* The default path where to store uploaded files.
* e.g. `CROPPIC_UPLOAD_PATH = 'user_photos'` (Notice no leading or trailing slashes).
* `CROPPIC_MIN_SIZE`
* Default: `None` (No restrictions)
* Restrict uploaded/cropped files to have at least minimum width and height as defined by `CROPPIC_MIN_SIZE`.
* e.g. `CROPPIC_MIN_SIZE = (250, 250)`
* `CROPPIC_MIN_SIZE_ERROR`
* Default: `Image is too small, must be at least {0}x{1} wide.` (The `{0}` and `{1}` will be used in string formatting to replace with width and height)
* If `CROPPIC_MIN_SIZE` is specified you may want to update this to show a different error message if uploaded/cropped image does not satisfy `CROPPIC_MIN_SIZE`
Change Log Summary
==================
### v0.0.2
* Extended `imgUrl` length from 100 to 250 in `CropForm`
* Updated README
### v0.0.1
* Lots of improvements in original package [django-croppic by Ben Hammel](https://bitbucket.org/bdhammel/django-croppic.git)
TODO
=====
* Testing across various Django and Python version. (Currently tested with Python 2.7+ Django 1.7+)
* Example project
Metadata
Release files for django-croppic 0.0.2
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-croppic-0.0.2.zip | 672.4 kB | Without provenance | Details for django-croppic-0.0.2.zip |
Release files / django-croppic-0.0.2.zip
| Download URL | django-croppic-0.0.2.zip |
|---|---|
| Size | 672.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0cb997041ba50de5233eee0c5e564de17d9f89f07cc2083826bac4177d80e16
|
|
BLAKE2b-256 checksum How to use checksums |
04415938b7872fafb0e574c4dbdcfc28bbcdf3b6b373d9624cc6aa364c66ecf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-croppic 0.0.2
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.