Commit graph

254 commits

Author SHA1 Message Date
Bryan Veloso
3fd2450e8d Merge branch 'release/1.0.2'
* release/1.0.2:
  Fixing some reST syntax.
  Bumping version numbers.
  Adding a changelog.
  Basic tests for extension_to_format and format_to_extension. References #45.
  Fix in `format_to_extension` mapping
  On-demand loading of PIL plugins
  Fix conversion of PNG "palette" or "P" mode images to JPEG. "P" mode images need to be converted to 'RGB' if target image format is not PNG or GIF.
  Back to dev.
2011-11-03 14:19:20 +09:00
Bryan Veloso
5666a640f0 Fixing some reST syntax. 2011-11-03 14:16:08 +09:00
Bryan Veloso
44392b7b24 Bumping version numbers. 2011-11-03 14:15:03 +09:00
Bryan Veloso
026955711e Adding a changelog. 2011-11-03 14:12:18 +09:00
Bryan Veloso
0f7c400239 Basic tests for extension_to_format and format_to_extension. References #45. 2011-11-03 02:57:01 +09:00
Matthew Tretter
f1b1f2ec71 Fix in format_to_extension mapping 2011-11-02 12:21:45 -04:00
Matthew Tretter
14bac58373 On-demand loading of PIL plugins 2011-11-02 11:26:24 -04:00
Bryan Veloso
dbc225466a Merge pull request #43 from deepakprakash/develop
Fix conversion of PNG "palette" or "P" mode images to JPEG. Fixes #41.
2011-11-02 02:24:48 -07:00
deepakprakash
d36e624acb Fix conversion of PNG "palette" or "P" mode images to JPEG.
"P" mode images need to be converted to 'RGB' if target image format is not PNG or GIF.
2011-11-02 14:25:22 +05:30
Bryan Veloso
5985def06b Back to dev. 2011-11-02 13:49:17 +09:00
Bryan Veloso
58a1f35425 Merge branch 'release/1.0.1' into develop
* release/1.0.1:
  Bumping docs to 1.0.1.
  Bumping version to 1.0.1.
2011-11-02 13:48:06 +09:00
Bryan Veloso
d9a7640d56 Merge branch 'release/1.0.1'
* release/1.0.1:
  Bumping docs to 1.0.1.
  Bumping version to 1.0.1.
  Making sure the templates make it via pip. Fixes #39.
  Generated filename is cached
  Fixes extension guessing based on image format
  No longer an alpha.
  Including README.rst and the docs in MANIFEST.in. Fixes #40.
  Develop is now v1.1.0.dev.
  Slightly updated README to correctly render as reStructuredText.
2011-11-02 13:47:32 +09:00
Bryan Veloso
3985629b9a Bumping docs to 1.0.1. 2011-11-02 13:46:23 +09:00
Bryan Veloso
2e27e82832 Bumping version to 1.0.1. 2011-11-02 13:45:10 +09:00
Bryan Veloso
023f8592d7 Making sure the templates make it via pip. Fixes #39. 2011-11-02 13:42:35 +09:00
Matthew Tretter
8885325bfc Generated filename is cached 2011-11-01 19:39:54 -04:00
Matthew Tretter
892cce7c7f Fixes extension guessing based on image format
IK relies on PIL's EXTENSION list to map formats to extensions.
However, this list normally isn't populated until an image is loaded.
This change forces the population of the list before examining it.
2011-11-01 18:54:18 -04:00
Bryan Veloso
4b86e37f93 No longer an alpha. 2011-11-01 01:54:31 +09:00
Bryan Veloso
a2296a382b Including README.rst and the docs in MANIFEST.in. Fixes #40. 2011-11-01 01:37:29 +09:00
Bryan Veloso
28f4dd0103 Develop is now v1.1.0.dev. 2011-11-01 00:44:29 +09:00
Matthew Tretter
72ba73a431 Merge pull request #38 from jezdez/develop
Slightly updated README to correctly render as reStructuredText.
2011-10-31 08:27:03 -07:00
Jannis Leidel
4555df03d0 Slightly updated README to correctly render as reStructuredText. 2011-10-31 16:24:29 +01:00
Bryan Veloso
11c1259ba3 Merge branch 'release/1.0.0' into develop
* release/1.0.0: (68 commits)
  Tests now run again.
  PEP8-ing and whitespacing.
  Requiring versiontools and patching up our setup.py.
  adding introspection rule for users with south
  PEP8 and import tweaks.
  fixing typo
  ImageSpecFile is a proper File
  Typo fix
  A list of ImageSpec names are now stored on the model.
  AdminThumbnailView is now AdminThumbnail
  Docs typo fix
  Adds explicit import of resize module to processors
  fixing bad import in docs
  adding name to AUTHORS
  adding test for new api
  Moved Crop and Fit to resize module.
  More docs edits.
  Typo fix.
  Installation instructions.
  Embracing duck typing.
  ...

Conflicts:
	README.rst
2011-10-31 23:32:39 +09:00
Bryan Veloso
7e55f5e087 Merge branch 'release/1.0.0'
* release/1.0.0: (68 commits)
  Tests now run again.
  PEP8-ing and whitespacing.
  Requiring versiontools and patching up our setup.py.
  adding introspection rule for users with south
  PEP8 and import tweaks.
  fixing typo
  ImageSpecFile is a proper File
  Typo fix
  A list of ImageSpec names are now stored on the model.
  AdminThumbnailView is now AdminThumbnail
  Docs typo fix
  Adds explicit import of resize module to processors
  fixing bad import in docs
  adding name to AUTHORS
  adding test for new api
  Moved Crop and Fit to resize module.
  More docs edits.
  Typo fix.
  Installation instructions.
  Embracing duck typing.
  ...

Conflicts:
	README.rst
2011-10-31 23:30:09 +09:00
Bryan Veloso
f47c4f9e8b Tests now run again. 2011-10-31 23:23:50 +09:00
Bryan Veloso
06c1c678b6 PEP8-ing and whitespacing. 2011-10-31 23:12:03 +09:00
Bryan Veloso
a45f3af2a5 Requiring versiontools and patching up our setup.py. 2011-10-31 23:01:41 +09:00
Bryan Veloso
6c87d7deac Merge branch 'release/0.4.1' into develop
* release/0.4.1:
  Discontinuation notice.
2011-10-31 22:43:13 +09:00
Bryan Veloso
1900248842 Merge branch 'release/0.4.1'
* release/0.4.1:
  Discontinuation notice.
  Future-proofing our PIL imports, fixes #37.
  Whitespacing and PEP8-ing.
  Clearing out some unused imports.
  We no longer import *.
  Prefer cStringIO.
  Killing off some stray tabs.
  Changed id to pk in case the primary key isn't called 'id'
  Adding Ryan to AUTHORS.
  dynamically getting colors, instead of setting it to 255
  adding transparency patch to preserve transparency when saving the image
  Making versioning a little easier on myself.
  error fix: https://github.com/jdriscoll/django-imagekit/issues/25
  Fixing some spelling. Fixes #29. Thanks Nai!
  Tests now pass and don't leave any directory cruft. Fixes #28.
  Adding a test runner script a la #daniellindsleyrocksdahouse.
  Creating a "core" test module.
  Creating a dedicated tests directory.
  Let's get these docs started.
  Added support for preserving transparency when converting from color to greyscale
2011-10-31 22:42:24 +09:00
Bryan Veloso
47fac1cb07 Discontinuation notice. 2011-10-31 22:41:43 +09:00
Chris McKenzie
714ff8ae1d adding introspection rule for users with south 2011-10-24 18:18:25 -04:00
Bryan Veloso
6adadafc74 PEP8 and import tweaks. 2011-10-20 12:12:47 +09:00
Bryan Veloso
302399d837 Merge branch 'new_api' of https://github.com/matthewwithanm/django-imagekit into release/1.0.0
* 'new_api' of https://github.com/matthewwithanm/django-imagekit: (63 commits)
  fixing typo
  ImageSpecFile is a proper File
  Typo fix
  A list of ImageSpec names are now stored on the model.
  AdminThumbnailView is now AdminThumbnail
  Docs typo fix
  Adds explicit import of resize module to processors
  fixing bad import in docs
  adding name to AUTHORS
  adding test for new api
  Moved Crop and Fit to resize module.
  More docs edits.
  Typo fix.
  Installation instructions.
  Embracing duck typing.
  Documentation!
  Fix bug
  Bound fields are now cached on the model instance.
  Transpose processor now supports auto EXIF orientation.
  Fix filename formatting.
  ...

Conflicts:
	AUTHORS
	README.rst
	docs/Makefile
	docs/conf.py
	docs/index.rst
	imagekit/__init__.py
	imagekit/defaults.py
	imagekit/management/commands/ikflush.py
	imagekit/models.py
	imagekit/options.py
	imagekit/processors.py
	imagekit/specs.py
	tests/core/tests.py
2011-10-20 12:06:10 +09:00
Chris McKenzie
79a6e8f1ab fixing typo 2011-10-17 10:27:29 -04:00
Bryan Veloso
56d8b80a12 Future-proofing our PIL imports, fixes #37. 2011-10-13 14:35:16 +09:00
Matthew Tretter
8147cb85df ImageSpecFile is a proper File
Previously, ImageSpecFile was a file-like object, but didn't actually
extend any of the file classes. Because of this, some of Django's file-
handling code was duplicated. More importantly, instances didn't always
behave as one might expect (if one were familiar with ImageFields),
particularly when the source image was empty. This could have been
especially confusing in templates. (For example, because
ImageSpecFields whose source images didn't exist were still truthy.)
2011-10-10 17:22:06 -04:00
Matthew Tretter
7f7141ef27 Typo fix 2011-10-10 17:21:59 -04:00
Bryan Veloso
2d4f116e57 Whitespacing and PEP8-ing. 2011-10-11 02:16:22 +09:00
Bryan Veloso
f0269831fd Clearing out some unused imports. 2011-10-11 02:13:31 +09:00
Bryan Veloso
0ddff78068 We no longer import *. 2011-10-11 02:10:38 +09:00
Bryan Veloso
5e72d9f5e4 Prefer cStringIO. 2011-10-11 02:08:05 +09:00
Bryan Veloso
db86d7ed66 Killing off some stray tabs. 2011-10-11 01:12:30 +09:00
Bryan Veloso
00049abc95 Merge pull request #36 from jammons/develop
Changed id to pk in case the primary key isn't called 'id'
2011-10-10 00:37:18 -07:00
Jeff Ammons
2a37d7bfdc Changed id to pk in case the primary key isn't called 'id' 2011-10-06 16:15:26 -07:00
Eric Eldredge
b8e57dccd6 A list of ImageSpec names are now stored on the model.
Previously, ImageSpecFile instances were retrieved (for saving and deleting,
among other possibilities) by iterating over the model instance's attributes.
This change adds ImageSpecFile names to a list (spec_file_names) on an
imagekit meta object on the model (_ik), making later retrieval much cheaper
and more straightforward.
2011-10-06 16:08:14 -04:00
Matthew Tretter
b9aa69e0c0 AdminThumbnailView is now AdminThumbnail
I never liked that the "AdminThumbnailView" was supposed to be defined
on the model, but never looked into it.

This commit puts the definition back where it belongs: in the admin.
Instead of requiring you to add a field (with view logic) to your
model, you now just add a property to your admin class and specify
that property in the `list_display` list.
2011-10-02 21:58:08 -04:00
Matthew Tretter
067217e40e Docs typo fix 2011-09-26 16:52:35 -04:00
Eric Eldredge
67477a6e15 Adds explicit import of resize module to processors
This way users can write 'from imagekit.processors import *' and also use the
resize processors like so: 'resize.Crop(50, 50)'
2011-09-26 16:45:45 -04:00
Chris McKenzie
492febf7ec fixing bad import in docs 2011-09-26 16:40:38 -04:00
Chris McKenzie
9e9665f626 adding name to AUTHORS 2011-09-26 16:39:45 -04:00