Commit graph

263 commits

Author SHA1 Message Date
Bryan Veloso
486fb51a1e Merge pull request #49 from cyberdelia/fix-empty-exif-data
Avoid Transpose to crash when there is no exif data.
2011-11-04 04:50:19 -07:00
Bryan Veloso
e2796b5984 Merge pull request #48 from ptone/open_image_improvement
Open image improvement. Closes #47.
2011-11-04 04:49:27 -07:00
Timothée Peignier
a0f2db4d29 avoid Transpose to crash when there is no exif data 2011-11-04 12:00:19 +01:00
ptone
18349a053f Try to better handle being passed a open file with write mode enabled
such as would be the case with tempfile.mkstemp etc
2011-11-04 00:11:22 -07:00
ptone
115baa9a97 Merge branch 'develop' of git://github.com/jdriscoll/django-imagekit into develop
* 'develop' of git://github.com/jdriscoll/django-imagekit:
  `format_to_extension` correctly handles `None` arg
  Proper handling of empty images and missing fields
  Fixes error message
2011-11-03 23:36:32 -07:00
Matthew Tretter
dd642fd05b format_to_extension correctly handles None arg 2011-11-03 15:00:40 -04:00
Matthew Tretter
3022eb037d Proper handling of empty images and missing fields
Fixes #42
2011-11-03 12:33:22 -04:00
Matthew Tretter
bbc0bffd88 Fixes error message
Arguments were in the wrong order. Also, shows class name in string
representation of instance isn't helpful.
2011-11-03 12:26:23 -04:00
Bryan Veloso
2cb8d5d407 Merge branch 'release/1.0.2' into develop
* release/1.0.2:
  Fixing some reST syntax.
  Bumping version numbers.
2011-11-03 14:20:01 +09:00
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