Commit Graph

18738 Commits

Author SHA1 Message Date
Alex Clark ☺
f22ba9d8db Merge pull request #393 from cgohlke/patch-1
Support RGBA TIFF with missing ExtraSamples tag
2013-10-27 04:27:16 -07:00
cgohlke
42b8ec37d7 Support RGBA TIFF with missing ExtraSamples tag 2013-10-26 18:02:17 -07:00
Alex Clark
b9b45c1ba5 Add history [ci skip] 2013-10-24 06:08:53 -04:00
Alex Clark ☺
e3d85700b4 Merge pull request #390 from wiredfool/webp-lossless
Lossless WEBP Support
2013-10-24 03:08:24 -07:00
Alex Clark
3aa703a9fa Add history [ci skip] 2013-10-24 06:07:57 -04:00
Alex Clark ☺
b57d68e993 Merge pull request #389 from wiredfool/libtiff-save
Take compression as an option in the save call for tiffs
2013-10-24 03:03:27 -07:00
Alex Clark
46d33257ef Merge branch 'master' of github.com:python-imaging/Pillow 2013-10-24 06:02:29 -04:00
Alex Clark
ebec232662 Add history [ci skip] 2013-10-24 06:02:23 -04:00
Alex Clark ☺
06ba0ea757 Merge pull request #386 from liftoff/master
Add support for saving lossless WebP.  Just pass 'lossless=True' to save()
2013-10-24 03:00:51 -07:00
wiredfool
388c25b781 PhotometricInterpretation is set from SAVE_INFO, not the original image, so spurious test failure. 2013-10-23 20:50:01 -07:00
wiredfool
63995459bc merge from master 2013-10-22 16:18:06 -07:00
wiredfool
f8abb98ffd Merge from master 2013-10-22 16:05:18 -07:00
wiredfool
9f6c465f50 Merge pull request #388 from wiredfool/bigendian
Bigendian Fixes
2013-10-22 15:59:13 -07:00
wiredfool
2c1e800836 added new VP8 mode for lossless reading of RGBA, fixes failing tests 2013-10-22 12:44:09 -07:00
wiredfool
27b1054b77 Tests for writing lossless RGB and RGBA images 2013-10-22 12:32:31 -07:00
wiredfool
5c501b8f64 Webp save documentation 2013-10-22 12:32:01 -07:00
wiredfool
6a0516d2c9 final pass through atts: handling single rational tuple, using isStringType, flattening from single element tuple to string or int 2013-10-22 10:10:37 -07:00
wiredfool
6357b4707c String attr test case 2013-10-22 10:09:25 -07:00
wiredfool
758da6c581 whitespace error 2013-10-22 10:06:33 -07:00
wiredfool
c41a9b2b23 correcting debugging strings 2013-10-22 09:29:56 -07:00
wiredfool
8655209b4a rm debugging print 2013-10-22 09:24:51 -07:00
wiredfool
32e2f97b21 Tag issues with libtiff -- Need to parse the tuples for the ifd and the im.ifd. getattr + default for the im.ifd instead of silent try/except 2013-10-22 09:18:41 -07:00
Eric Soroos
8d21ce1df7 py3k 2013-10-21 22:53:35 +00:00
Eric Soroos
3128a76495 MM and II 16 bit integer tiffs pack/write properly using libtiff on bigendian platform 2013-10-21 22:37:20 +00:00
Eric Soroos
6f8d968cbb MM and II 16 bit integer tiffs unpack properly using libtiff on bigendian platform 2013-10-21 22:17:33 +00:00
wiredfool
7ece94edc7 compression in encoder info 2013-10-21 09:30:06 -07:00
wiredfool
83bd3291db tests for the actual compression method of the compressed file 2013-10-21 09:29:51 -07:00
Eric Soroos
1945fecdb6 Tests for endian issues in decoding 16bit tif images 2013-10-21 05:19:52 +00:00
wiredfool
a18ef74886 pass bool flag as int, not object 2013-10-20 20:54:12 -07:00
Dan McDougall
0a91541df8 Add support for saving lossless WebP. Just pass 'lossless=True' to save(). 2013-10-20 15:44:22 -04:00
Eric Soroos
366f9a5f35 uint16 varies from platform to platform, <u2 is spefific 2013-10-19 03:30:02 +00:00
Eric Soroos
175c572432 I;16 images are little endian, not native endian 2013-10-19 03:28:31 +00:00
wiredfool
a803528c8a Merge pull request #383 from hugovk/master
Fix for issue #382: TypeError with TransposedFont's getsize()
2013-10-17 09:28:48 -07:00
hugovk
92507e5d0a Fix issue #382: TypeError with TransposedFont's getsize()
When getting the size of text with a TransposedFont it was failing:

  File "/usr/local/lib/python2.7/site-packages/PIL/ImageDraw.py", line 281, in textsize
    return font.getsize(text)
  File "/usr/local/lib/python2.7/site-packages/PIL/ImageFont.py", line 189, in getsize
    w, h = self.font.getsize(text)[0]
TypeError: 'int' object is not iterable

This is because self.font.getsize(text) returns a (w, h) tuple. To fix, remove the [0].

Test cases have been created in test_imagefont.py: 
test_rotated_transposed_font()
test_unrotated_transposed_font()

Both fail before the fix, both pass with the fix. Furthermore, the code I'm using this from ( https://github.com/mattdeboard/word_cloud ) now works as expected and creates a word cloud similar to the ones that PIL created.
2013-10-17 19:00:42 +03:00
hugovk
c91bd27eec Add tests for rotated and non-rotated transposed font
Check the box size of an ImageFont.TransposedFont matches that of the original ImageFont.
2013-10-17 17:36:38 +03:00
Alex Clark
f1e7b0bf0f Add history [ci skip] 2013-10-16 12:10:54 -04:00
Alex Clark ☺
55a0792815 Merge pull request #380 from wiredfool/lcms2
LCMS1 replaced with LCMS2
2013-10-16 09:09:15 -07:00
Alex Clark
646364d05b Add history [ci skip] 2013-10-16 06:11:00 -04:00
wiredfool
e83455d0e5 Merge pull request #379 from svanheulen/master
Added more raw decoder 16 bit pixel formats
2013-10-15 22:08:44 -07:00
wiredfool
deb424c5cd working tests for LAB color conversions using ImagingCMS 2013-10-15 22:06:30 -07:00
wiredfool
bde4613843 format including the padding byte 2013-10-15 22:06:30 -07:00
wiredfool
1865a5c438 Shifting the midpoint of the ab channels to 128. unshifting back to signed int on pack 2013-10-15 22:06:30 -07:00
Seth VanHeulen
89b2653135 Added tests for new 16 bit raw unpackers 2013-10-15 14:10:11 -04:00
Seth VanHeulen
fc474a7b6f Added more raw decoder 16 bit pixel formats 2013-10-15 11:35:53 -04:00
Alex Clark
6f09474b6c Wording [ci skip] 2013-10-15 08:58:40 -04:00
Alex Clark
4ea4abe57d Don't duplicate info 2013-10-15 08:58:05 -04:00
Alex Clark
238c5b99fb Wording [ci skip] 2013-10-15 08:53:58 -04:00
Alex Clark
e0e4c4d52c Shuffle 2013-10-15 08:51:15 -04:00
Alex Clark
a556a46f52 Shuffle and reclassify 2013-10-15 08:48:52 -04:00
Alex Clark
08ac59e33c Move warnings to docs 2013-10-15 08:47:10 -04:00