summaryrefslogtreecommitdiff
path: root/django/core/files/images.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-3/+4
|
* Fixed #33079 -- Fixed get_image_dimensions() on nonexistent images.Stefanos I. Tsaklidis2021-09-021-1/+4
| | | | Thanks Nick Pope for the review.
* Fixed #29705 -- Fixed ImageField RuntimeError crash for WebP files.winkidney2018-08-231-0/+4
|
* Refs #27656 -- Updated django.core docstring verbs according to PEP 257.Anton Samarchyan2017-02-211-1/+1
|
* Replaced property() usage with decorator in several places.Berker Peksag2016-08-251-4/+4
|
* Removed unused exception "as" variable.Tim Graham2015-04-081-1/+1
|
* Fixed #24544 -- Fixed get_image_dimensions() on image buffers that Pillow ↵steve2015-04-071-0/+6
| | | | | | fails to parse. Thanks Steve Kossouho for the report and original patch.
* Fixed #24441 -- Changed get_image_dimensions() return value for broken imagesRaúl Cumplido2015-03-251-1/+1
|
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-211-6/+6
| | | | refs #19934.
* Fixed all E226 violationsAlex Gaynor2013-11-031-1/+1
|
* Fixed #19934 - Use of Pillow is now preferred over PIL.Daniel Lindsley2013-05-141-6/+2
| | | | This starts the deprecation period for PIL (support to end in 1.8).
* Replaced six.reraise with a simple raise.Florian Apolloner2013-01-011-4/+3
|
* Replaced e.message with e.args[0] in 3aa4b8165da23a2f094d0eeffacbda5484f4c1f6.Florian Apolloner2013-01-011-1/+1
|
* Fixed #19457 -- ImageField size detection failed for some files.Anton Baklanov2013-01-011-1/+13
| | | | | This was caused by PIL raising a zlib truncated stream error since we fed the parser with chunks instead of the whole image.
* Fixed a security issue in image uploading. Disclosure and release forthcoming.Florian Apolloner2012-07-301-1/+6
|
* Fixed #11158 - get_image_dimensions very slow/incorrect after 1 callLuke Plant2010-09-101-7/+12
| | | | | | | | Thanks to kua for the report, and to kua, SmileyChris and SAn for the patch git-svn-id: http://code.djangoproject.com/svn/django/trunk@13715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6054: work around PIL's installation brokeness by detecting either of ↵Jacob Kaplan-Moss2010-02-141-1/+6
| | | | | | the two ways it can end up being installed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #10404: ImageField height_field and width_field options no longer ↵Jacob Kaplan-Moss2009-05-111-0/+4
| | | | | | | | | | | | | | | | depend on putting the image field after the height/width fields as they did after r9766. This bug actually exposed a related handful of inconsistancies in the underlying file handling and wraping, so a few related changes are in here as well: * Dimensions are also now calculated the moment the image is assigned to the field instead of upon save. * The base `File` object now when possible delegates its closed attribute down to the os-level file it wrapps. * In-memory files' `close()` now is a no-op. Without this certain APIs that should be able to handle in-memory files were failing. * Accessing `FieldFile.closed` used to open the file. That's silly, and it doesn't any more. * Some over-eager error handling was squishing some errors that would normally be raised. One unit test was incorrectly depending on this behavior, so the test was removed. Thanks to Armin Ronacher for much of this work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8817: get_image_dimensions correctly closes the files it opens, and ↵Jacob Kaplan-Moss2009-05-081-8/+14
| | | | | | | | leaves open the ones it doesn't. Thanks, mitsuhiko. While I was at it, I converted the file_storage doctests to unit tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Don't import PIL until needed so that systems without PIL don't barf.Jacob Kaplan-Moss2008-08-081-2/+2
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@8249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* File storage refactoring, adding far more flexibility to Django's file ↵Jacob Kaplan-Moss2008-08-081-0/+42
handling. The new files.txt document has details of the new features. This is a backwards-incompatible change; consult BackwardsIncompatibleChanges for details. Fixes #3567, #3621, #4345, #5361, #5655, #7415. Many thanks to Marty Alchin who did the vast majority of this work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8244 bcc190cf-cafb-0310-a4f2-bffc1f526a37