{ "info": { "author": "Felipe R. R\u00eago", "author_email": "feliperrego@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-simplecrop\n================\n\nA simple module to crop images in an easy way in Django Administration.\n\n\nInstallation\n-----------------------------------\nInstall ``django-simplecrop`` (or download from [PyPI](http://pypi.python.org/pypi/django-simplecrop/ \"Download from PyPI\")):\n\n pip install django-simplecrop\n\nAdd ``simplecrop`` to ``INSTALLED_APPS`` in ``settings.py``:\n\n\n INSTALLED_APPS = (\n ...\n 'simplecrop',\n ...\n )\n \nInclude ``simpleCropAutodiscover()`` after ``admin.autodiscover()``:\n \n ...\n from simplecrop.utils import simpleCropAutodiscover\n \n admin.autodiscover()\n simpleCropAutodiscover()\n\nInclude ``simplecrop.urls`` in ``urls.py``:\n \n urlpatterns = patterns('',\n ...\n url(r'^simplecrop/', include('simplecrop.urls')),\n )\n \n \nUsage\n------------------\n\n\nInclude the ``__crops__`` parameter in your model and specify the field and image sizes:\n\n class MyModel(models.Model):\n __crops__ = [\n [\"image\", [\"110x110\", \"200x150\"]]\n ]\n\n title = models.CharField(u\"Title\", max_length=128)\n text = models.TextField(\"Text\")\n image = models.ImageField(\"Image\", upload_to=\"images\")\n\n\nTesting\n-----------------\nStep 1 - Add image:\n![Step 1](http://feliperego.com/img/step1.png \"Step 1\")\n\nStep 2 - Crop images:\n![Step 2](http://feliperego.com/img/step2.png \"Step 2\")\n\n\nTemplate tag\n-----------------\nUse the template tag `{% thumbnail %}` in your templates:\n\nHow to use:\n\n \n\n\\* *This template tag obtains the thumbnail image created when saving in admin. If it does not exist, a new thumbnail with the specified sizes will be created.*\n\nAuthors\n-----------------\n\n- [Felipe R. R\u00eago](https://github.com/feliperrego \"GitHub - Felipe R. R\u00eago\")\n- [Silvio Lucena Junior](https://github.com/silviolucenajunior \"GitHub - Silvio Lucena\")", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/feliperrego/django-simplecrop", "keywords": "crop,django", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-simplecrop", "package_url": "https://pypi.org/project/django-simplecrop/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-simplecrop/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/feliperrego/django-simplecrop" }, "release_url": "https://pypi.org/project/django-simplecrop/1.0.4/", "requires_dist": null, "requires_python": null, "summary": "A simple module to make easier crop images in Django admin.", "version": "1.0.4" }, "last_serial": 1499064, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "297776931a235227fe85fdb85e53a0db", "sha256": "8be354125bdc4a28227d59fb46ffab81d714ff73a23b0d60f2c1231c40319a00" }, "downloads": -1, "filename": "django-simplecrop-1.0.1.tar.gz", "has_sig": false, "md5_digest": "297776931a235227fe85fdb85e53a0db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 87287, "upload_time": "2014-11-18T12:44:01", "url": "https://files.pythonhosted.org/packages/6e/99/60ea49005403951b38103c76303437b957b815fc8f7739dd260a7a76e299/django-simplecrop-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "ab508f05f2ac9c59e0d58307b8e9e7e8", "sha256": "e0ec6f5d76e7176ead78f1dbcaaf3372c6fca1daea50afa44ad318c7b94913ca" }, "downloads": -1, "filename": "django-simplecrop-1.0.2.tar.gz", "has_sig": false, "md5_digest": "ab508f05f2ac9c59e0d58307b8e9e7e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 87955, "upload_time": "2014-11-18T16:19:48", "url": "https://files.pythonhosted.org/packages/b6/90/6b54cc7bd834aad2338d4c157b1cab40ca3aa081054972366b972d984bcb/django-simplecrop-1.0.2.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "534c8e80b476495b7728c865afc88c88", "sha256": "f8c3c6a196eae20716edb94a138f04cd81b6c607d6fd8ce839344ee186e6b558" }, "downloads": -1, "filename": "django-simplecrop-1.0.4.zip", "has_sig": false, "md5_digest": "534c8e80b476495b7728c865afc88c88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 95783, "upload_time": "2015-04-10T12:25:32", "url": "https://files.pythonhosted.org/packages/d4/f6/49564786fa6a3c35820207daa5e27fc99bfcd598850215bef41f01262efb/django-simplecrop-1.0.4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "534c8e80b476495b7728c865afc88c88", "sha256": "f8c3c6a196eae20716edb94a138f04cd81b6c607d6fd8ce839344ee186e6b558" }, "downloads": -1, "filename": "django-simplecrop-1.0.4.zip", "has_sig": false, "md5_digest": "534c8e80b476495b7728c865afc88c88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 95783, "upload_time": "2015-04-10T12:25:32", "url": "https://files.pythonhosted.org/packages/d4/f6/49564786fa6a3c35820207daa5e27fc99bfcd598850215bef41f01262efb/django-simplecrop-1.0.4.zip" } ] }