Andrew Murray
41e492b026
Removed use of spaces in TIFF kwargs, deprecated in 2.7
2016-12-09 20:44:42 +11:00
Hugo
e83479edf0
Merge pull request #2263 from wiredfool/tiff_bytesio
...
Fix for writing Tiff to BytesIO using libtiff
2016-12-09 11:04:41 +02:00
wiredfool
aa247dbb60
Moving tests requiring libtiff to test_file_libtiff
2016-12-05 08:25:10 -08:00
Hugo
837d583b15
Merge pull request #2275 from wiredfool/issue_2272
...
Update Maxblock heuristic (fixes #2272 )
2016-12-04 21:38:22 +02:00
Hugo
03b9d718fc
Merge pull request #2274 from wiredfool/issue_2258
...
Fix for 2 bit palette corruption #2258
2016-12-04 12:27:40 +02:00
wiredfool
d983aead74
Py3 bytes
2016-12-03 14:49:44 +00:00
wiredfool
7e2bd28a7c
Fix for issue 2272, CMYK images miss the heuristic for the maxblock buffer scaling
2016-12-03 14:45:45 +00:00
wiredfool
4b57345683
Refactor random image
2016-12-03 14:45:05 +00:00
wiredfool
88c43b61b7
Fix for #2258 , 2 bit palette images corrupted
2016-12-03 14:08:59 +00:00
wiredfool
86606022c5
Merge pull request #2193 from SemanticsOS/lambdafu/libtiff-icc
...
Update info.icc_profile when using libtiff reader.
2016-12-03 13:44:26 +00:00
wiredfool
8a68bd6daa
Merge pull request #2270 from ChristopherHogan/test_ifd_rational_save
...
Test: Fix bug in test_ifd_rational_save
2016-12-03 13:38:02 +00:00
Chris Hogan
711e95e361
Fix bug in test_idf_rational_save
...
A boolean wrapped in parentheses is still a boolean, not a tuple.
The comma makes this an actual tuple so it can be iterated on in
the for loop.
2016-12-01 11:10:03 -06:00
hugovk
ed4c0a58e8
Test case for #2266
2016-11-30 16:36:04 +02:00
hugovk
4061c3836c
Created with IrfanView
2016-11-30 14:38:04 +02:00
hugovk
4d6c2d5601
Test saving 256x256 icons
2016-11-30 14:37:50 +02:00
wiredfool
e0b957240b
Merge pull request #2087 from cskau/patch-1
...
Fixes TIFFImagePlugin ICC color profile saving.
2016-11-29 19:33:52 +00:00
glexey
0116c9240e
EMF: support negative bounding box coordinates ( #2249 )
...
* EMF: support negative bounding box coordinates
Similar to placeable WMF, bounding box coordinates
should be interpreted as signed integer, otherwise
opening EMF file with negative (x0,y0) fails.
* Basic load tests for WMF and EMF formats
* WMF/WMF tests: just test open(), not load()
Not sure why load() fails on Debian build. Well, at least we can test
open().
* WMF/EMF: Unpack signed integers using unpack()
* WMF/EMF: Compare to reference PNG rendering
* EMF/WMF comparison: use assert_image_similar()
* Use similarity epsilon 0.5 for WMF, as vector rendering looks different across Windows platforms
* Trigger rebuild
2016-11-27 16:03:51 +00:00
homm
bcb6d606a2
fix typo!
2016-11-24 04:07:06 +03:00
homm
d4784bffb2
return copy of the image if size matches
2016-11-24 03:30:36 +03:00
homm
9947794ccd
fix spelling error
2016-11-24 03:09:34 +03:00
wiredfool
ce3432f5f4
Test for issue #2206
2016-11-23 06:24:40 -08:00
Hugo
6fa7f3fc67
Merge pull request #2241 from wiredfool/sunrle
...
SunImagePlugin fixes
2016-11-23 16:10:17 +02:00
wiredfool
212508b3f2
Review comments
2016-11-23 05:33:02 -08:00
wiredfool
620d082457
Merge pull request #2240 from uploadcare/draft-min-scale
...
Use minimal scale for jpeg drafts
2016-11-22 15:22:59 +00:00
wiredfool
82caa13a02
Additional test images for sun raster files
2016-11-22 07:19:58 -08:00
Jon Dufresne
dbe9f85c7d
Drop support for Python 2.6
...
* Drop unittest2 requirement
* Use set literals
* Use dict/set comprehension
* Use str.format() automatic numbering
2016-11-22 04:23:55 -08:00
wiredfool
87b8d2894a
Merge pull request #2227 from radarhere/fpname
...
Fixed bug in saving to fp-objects in Python >= 3.4
2016-11-22 12:03:25 +00:00
homm
55fca4857c
protect .draft() from second call
2016-11-22 04:28:04 +03:00
homm
8f6b7b258b
use minimal scale for jpeg downscaling
2016-11-22 04:00:49 +03:00
wiredfool
318ff7d332
fixed support for hopper.ras, and other RGB sun raster files
2016-11-19 19:43:43 -08:00
wiredfool
e43c91cf1c
Working 1 bit sun_rle raster file
2016-11-19 19:16:46 -08:00
Andrew Murray
38fd77ca7d
Fixed bug in saving to fp-objects in Python >= 3.4
2016-11-15 20:13:25 +11:00
Jon Dufresne
ffa5bc2726
Use generator expressions instead of list comprehension
...
Avoids unnecessary temporary lists in memory.
2016-11-14 18:11:15 -08:00
Andrew Murray
b6a4d9bc94
Added test
2016-11-15 06:38:54 +11:00
wiredfool
8c36cd09f7
Merge pull request #2221 from jmerdich/master
...
Add support for another type of BMP bitfield
2016-11-14 16:13:10 +00:00
Jake Merdich
991df9b87a
Update test image for xbgr bmp files
2016-11-14 10:26:57 -05:00
Jake Merdich
e63b97ea42
Add testing for bmp 'questionable' files
2016-11-14 10:10:56 -05:00
Andrew Murray
3dcef86fe5
Added missing top-level test code
2016-11-14 21:12:25 +11:00
wiredfool
9ee19f2aa9
Merge pull request #2182 from wiredfool/pyside_segfault
...
Fix for ImageQt Segfault
2016-11-11 17:00:27 +00:00
Jon Dufresne
f041188050
Replace try/except/fail pattern with TestCase.assertRaises()
...
Replace pattern with the builtin support for asserting exceptions.
2016-11-06 13:43:09 -08:00
Clement Skau
caf53b05ec
Fixes TIFFImagePlugin ICC color profile saving.
...
In the TIFF code saving icc_profile is conditional on tag_v2 being set which doesn't make sense to me. I believe this is merely an indentation typo.
I've been trying to save TIFFs with im.info['icc_profile'] set and compression=raw, but unfortunately this results in TIFFs without ICC color profiles.
With the attached patch TIFFs with said conditions will be saved with the profile set in im.info['icc_profile'].
Note: There are a number of different conditions that need to be met for code to succeed in saving with the profile since it branches between using libtiff and ImageFile._save(..), and the libtiff code does not currently save the ICC color profile.
For instance setting compression=tiff_lzw will result in using libtiff and no profile will be saved.
2016-11-05 15:01:39 +09:00
Marcus Brinkmann
66de02685f
Update info.icc_profile when using libtiff reader.
2016-11-04 16:37:49 +01:00
Hugo
48b72eac34
Merge pull request #2184 from jdufresne/isinstance
...
Replace type() equality checks with isinstance
2016-11-01 19:07:06 +02:00
Jon Dufresne
a33939f5c3
Remove unused, open files at top level of tests.
...
The data read from the file was unused. The files remained opened and
were never explicitly closed.
Fixes some instances of warnings during tests:
"ResourceWarning: unclosed file ..."
2016-11-01 06:34:17 -07:00
Jon Dufresne
e44bb42ae9
Replace type() equality checks with isinstance
2016-10-31 06:41:43 -07:00
wiredfool
8582144e0e
Fix for issue #1370 , Segfault using QImages due to not retaining the data
2016-10-27 14:11:06 -07:00
Jon Dufresne
7992d2a65a
Fix BytesWarning discovered while running tests
...
Discovered using the command:
python -b -m nose -vx Tests/test_*.py
2016-10-22 12:35:44 -07:00
Alexander Karpinsky
5a359fbf28
Fix coefficients calculation ( #2162 )
...
Fix coefficients calculation
* test for regression
* detailed comments what is going on
prevent setting the `k[-1]` item
* more readable
2016-10-17 01:31:45 -07:00
homm
923f0bb9b3
improve test
2016-10-04 03:11:53 +03:00
homm
c5e111e6b8
allow lists as arguments for Image.new
2016-10-04 03:06:35 +03:00