Commits

David Danier committed 02145f7

setup.py and README.txt

Comments (0)

Files changed (5)

 bin
 include
 .*\.pyc
+dist
+django_imagequery.egg-info
+build
+With ImageQuery you are able to write image manipulations without needing
+to learn some low-level API for the most use cases. It allows you to:
+ * simple manipulation like rescaling
+ * combining images
+ * handling text (note: fonts must be available locally)
+ * even more like creating drop shadows (using the alpha mask)
+
+ImageQuery basicly provides an API similar to the well known QuerySet API,
+which means:
+ * Most methods just return another ImageQuery
+ * Every bit of your image manipulation chain can be used/saved
+ * Image manipulations are lazy, they are only evaluated when needed
+
+Some examples:
+
+# load the image
+iq = ImageQuery('some/file.png')
+# scale it to 100x200 max
+iq = iq.scale(100, 200)
+iq.save('scaled/version.png')
+# save the scaled version including a simple watermark
+# note: this does not chenge "iq"
+iq.paste('watermark.png', 'center', 'center').save('watermarked/version.png')
+# create a grayscale version (without watermark of course)
+iq = iq.grayscale()
+iq.save('scaled_grayscale/version.png')
+
+In addition ImageQuery provides some nice tools to make handling images
+even more easy:
+ * support for Django storage API
+ * base class to manage multiple image formats
+ * included template tags (using formats) and filters (lowlevel)
- * setup.py
+ * enhance setup.py? (test, pypi upload, ...)
  * enhance tests
- * README
+ * enhance README
 

example/settings.py

 )
 
 MIDDLEWARE_CLASSES = (
-    'django.middleware.common.CommonMiddleware',
-    'django.contrib.sessions.middleware.SessionMiddleware',
-    'django.middleware.csrf.CsrfViewMiddleware',
-    'django.contrib.auth.middleware.AuthenticationMiddleware',
-    'django.contrib.messages.middleware.MessageMiddleware',
+    #'django.middleware.common.CommonMiddleware',
+    #'django.contrib.sessions.middleware.SessionMiddleware',
+    #'django.middleware.csrf.CsrfViewMiddleware',
+    #'django.contrib.auth.middleware.AuthenticationMiddleware',
+    #'django.contrib.messages.middleware.MessageMiddleware',
 )
 
 ROOT_URLCONF = 'example.urls'
 )
 
 INSTALLED_APPS = (
-    'django.contrib.auth',
-    'django.contrib.contenttypes',
-    'django.contrib.sessions',
-    'django.contrib.sites',
-    'django.contrib.messages',
+    #'django.contrib.auth',
+    #'django.contrib.contenttypes',
+    #'django.contrib.sessions',
+    #'django.contrib.sites',
+    #'django.contrib.messages',
     # Uncomment the next line to enable the admin:
     # 'django.contrib.admin',
     'imagequery',
+# -*- coding: utf-8 -*-
+from setuptools import setup, find_packages
+
+setup(
+    name = "django-imagequery",
+    version = "0.1-dev",
+    author_email = "david.danier@team23.de",
+    url = "http://bitbucket.org/ddanier/django-imagequery",
+    
+    packages = find_packages(exclude=[
+        'example',
+        'example.*'
+    ]),
+    package_data = {
+        'imagequery.tests': [
+            'samplefonts/*.ttf',
+            'sampleimages/*.png',
+            'sampleimages/*.jpg',
+            'sampleimages/results/*.png',
+            'sampleimages/results/*.jpg',
+        ],
+    },
+    license = "BSD License",
+    keywords = "django imagequery PIL",
+    description = "Image manipulation written like well known QuerySet operations",
+    install_requires=[
+        'setuptools',
+        'Django',
+    ],
+    classifiers = [
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: BSD License',
+        'Operating System :: OS Independent',
+        'Programming Language :: Python',
+        'Framework :: Django',
+        'Topic :: Utilities',
+    ],
+    zip_safe=False,
+)
+