Commit Graph

1432 Commits

Author SHA1 Message Date
Brian Crowell
a7e3b2e47b py3k: The big push
There are two main issues fixed with this commit:

* bytes vs. str: All file, image, and palette data are now handled as
  bytes. A new _binary module consolidates the hacks needed to do this
  across Python versions. tostring/fromstring methods have been renamed to
  tobytes/frombytes, but the Python 2.6/2.7 versions alias them to the old
  names for compatibility. Users should move to tobytes/frombytes.

  One other potentially-breaking change is that text data in image files
  (such as tags, comments) are now explicitly handled with a specific
  character encoding in mind. This works well with the Unicode str in
  Python 3, but may trip up old code expecting a straight byte-for-byte
  translation to a Python string. This also required a change to Gohlke's
  tags tests (in Tests/test_file_png.py) to expect Unicode strings from
  the code.

* True div vs. floor div: Many division operations used the "/" operator
  to do floor division, which is now the "//" operator in Python 3. These
  were fixed.

As of this commit, on the first pass, I have one failing test (improper
handling of a slice object in a C module, test_imagepath.py) in Python 3,
and three that that I haven't tried running yet (test_imagegl,
test_imagegrab, and test_imageqt). I also haven't tested anything on
Windows. All but the three skipped tests run flawlessly against Pythons
2.6 and 2.7.
2013-01-10 08:46:56 -06:00
Brian Crowell
dfb1b144d8 py3k: Remove Image types import
For awhile now, str == type("") and so on. So we use the appropriate int,
str, basestring, or tuple type where applicable.
2013-01-10 08:46:49 -06:00
Alex Clark
4a10a363e4 Release 1.7.8 2012-11-01 17:09:46 -04:00
tdesvenain
c5097fb1d2 Removed doctests.py that made tests of other packages fail. 2012-09-21 14:15:54 +02:00
tdesvenain
3eda40cb4c revert last commit, images rendered didn't match very well 2012-07-29 17:05:54 +02:00
tdesvenain
bc9455d059 Added a psd mode (mode 4, 16 bits). 2012-07-29 16:02:26 +02:00
tdesvenain
4ebe7fc459 Fix opening psd files with RGBA layers when A mode is not of type 65535
but 3.
Fixes issue https://github.com/python-imaging/Pillow/issues/3
2012-07-29 15:48:40 +02:00
Alex Clark
9488cb1e53 Onwards 2012-04-05 23:25:24 -04:00
Alex Clark
aaac591549 Release 1.7.7 2012-04-04 21:15:07 -04:00
Alex Clark
ea0989ad17 Add sphinx docs 2012-02-16 20:10:57 -05:00
Alex Clark
217364112c Wording 2012-01-20 20:00:07 -05:00
Alex Clark
3af55ff06f Prepare release 2012-01-20 19:52:39 -05:00
Alex Clark
45da68c14d Prepare release 2011-10-26 21:12:43 -04:00
Alex Clark
163847b161 More detail 2011-09-07 14:10:25 -04:00
Alex Clark
7903d20a9d Flake8 fixes 2011-09-07 13:40:53 -04:00
Alex Clark
c3d96abc1c Fix brown bag release 2011-07-21 10:52:54 -04:00
Alex Clark
dfcbc2a231 Update docs 2011-07-20 23:34:52 -04:00
Alex Clark
845bee063d On to 1.7.2 2011-05-31 12:05:21 -04:00
Alex Clark
f4fe73c4fe Add the rest of the code ;-) 2011-05-31 11:33:28 -04:00
Alex Clark
a55cdddb20 Prepare Pillow 1.7.0. 2011-05-27 22:40:39 -04:00
Alex Clark
60f7ed31a0 Nit 2010-12-01 14:40:29 -05:00
Alex Clark
8d2e0a9570 Prep 1.6 2010-12-01 14:39:00 -05:00
Alex Clark
6adfb43bff Update docs 2010-11-28 15:59:33 -05:00
Alex Clark
e7e322a4a3 Fix PIL module 2010-11-28 15:58:32 -05:00
Alex Clark
3ca59544b7 Doc fixes 2010-11-28 15:42:59 -05:00
Alex Clark
b05c0c65bf Update setup report 2010-11-28 15:29:39 -05:00
Alex Clark
09de42da9a Doc fixes; version 1.3 instead of 1.2.1 2010-11-28 10:54:57 -05:00
Alex Clark
fc970b29a6 Lower case the package name and fix website url 2010-11-28 10:24:57 -05:00
Alex Clark
52ae696354 Prepare 1.2.1 2010-11-26 15:57:29 -05:00
Alex Clark
fb47c498ef Update HISTORY. Time for 1.2? 2010-08-02 11:41:21 -04:00
Alex Clark
fd9926c586 Prepare 1.1 2010-07-31 20:00:23 -04:00
Alex Clark
10eae5deb0 Move back to (lower case) docs dir 2010-07-31 19:56:56 -04:00