Pillow/PIL
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
..
__init__.py 3.5.0.dev0 Dev Version bump 2016-10-04 00:18:33 -07:00
_binary.py EMF: support negative bounding box coordinates (#2249) 2016-11-27 16:03:51 +00:00
_tkinter_finder.py Flake8 fixes 2016-09-03 12:17:22 +10:00
_util.py flake8 2014-07-06 01:50:24 +03:00
BdfFontFile.py Commented or removed unused lines 2015-11-09 23:34:34 +11:00
BmpImagePlugin.py Drop support for Python 2.6 2016-11-22 04:23:55 -08:00
BufrStubImagePlugin.py Converted documentation 2016-09-24 19:10:46 +10:00
ContainerIO.py Converted documentation 2016-09-24 19:10:46 +10:00
CurImagePlugin.py Throw TypeError if no cursors were found in .cur file 2015-11-26 19:56:41 +11:00
DcxImagePlugin.py Flake8 fixes 2015-08-25 22:27:18 +10:00
DdsImagePlugin.py Add support for BC7 to DdsImagePlugin 2016-08-26 02:26:03 -05:00
EpsImagePlugin.py Removed 'Debugging' open_ppm call that didn't check file provided parameters for sanity 2016-10-03 07:27:02 -07:00
ExifTags.py Moved EXIF tag to be in hex order 2016-04-19 19:50:28 +10:00
features.py Replace type() equality checks with isinstance 2016-10-31 06:41:43 -07:00
FitsStubImagePlugin.py Converted documentation 2016-09-24 19:10:46 +10:00
FliImagePlugin.py Flake8 fixes 2015-08-25 22:27:18 +10:00
FontFile.py Use a context manager in FontFile.save() to ensure file is always closed 2016-11-14 21:18:57 -08:00
FpxImagePlugin.py Added return for J2k (and fpx) Load to return a pixel access object 2016-08-08 07:36:34 -07:00
FtexImagePlugin.py Corrected unfinished sentence 2016-11-19 10:55:08 +11:00
GbrImagePlugin.py Fixed typo 2016-04-13 17:33:33 +10:00
GdImageFile.py Converted documentation 2016-09-24 19:10:46 +10:00
GifImagePlugin.py Use generator expressions instead of list comprehension 2016-11-14 18:11:15 -08:00
GimpGradientFile.py Replaced old-style classes 2015-05-27 00:07:21 +10:00
GimpPaletteFile.py Fix "invalid escape sequence" bytestring warnings in Python 3.6 2016-10-31 11:48:59 -04:00
GribStubImagePlugin.py Converted documentation 2016-09-24 19:10:46 +10:00
Hdf5StubImagePlugin.py Converted documentation 2016-09-24 19:10:46 +10:00
IcnsImagePlugin.py Renamed references to OS X to macOS 2016-09-23 21:12:03 +10:00
IcoImagePlugin.py Drop support for Python 2.6 2016-11-22 04:23:55 -08:00
Image.py Merge pull request #2248 from uploadcare/use-_new 2016-11-24 08:32:13 +02:00
ImageChops.py Remove old ImageChops comments; redundant with docstrings 2013-10-11 22:46:57 -07:00
ImageCms.py Check type of items passed into to ImageCms.ImageCmsProfile, fixes #2037 2016-09-26 14:56:00 -07:00
ImageColor.py Fix "invalid escape sequence" warning in Python 3.6 2016-09-27 19:26:57 -04:00
ImageDraw.py Replace type() equality checks with isinstance 2016-10-31 06:41:43 -07:00
ImageDraw2.py Replaced old-style classes 2015-05-27 00:07:21 +10:00
ImageEnhance.py Fixed typo in ImageEnhance.py 2015-05-28 17:20:33 +10:00
ImageFile.py expand tile element names, don't attempt to mmap if args has < 3 elements 2016-11-22 02:46:54 -08:00
ImageFilter.py Fixed redefinition of built-in 2015-04-24 16:02:39 +10:00
ImageFont.py Close file after finished reading in ImageFont._load_pilfont() 2016-11-17 07:46:54 -08:00
ImageGrab.py Fixed typo 2016-10-07 20:43:54 +11:00
ImageMath.py remove end of file banner from all files 2016-07-10 14:11:28 +03:00
ImageMode.py remove end of file banner from all files 2016-07-10 14:11:28 +03:00
ImageMorph.py Use generator expressions instead of list comprehension 2016-11-14 18:11:15 -08:00
ImageOps.py patch : image copy 2016-07-11 12:18:07 +02:00
ImagePalette.py Close file after reading in ImagePalette.load() 2016-11-11 16:59:32 -08:00
ImagePath.py remove end of file banner from all files 2016-07-10 14:11:28 +03:00
ImageQt.py Fix for issue #1370, Segfault using QImages due to not retaining the data 2016-10-27 14:11:06 -07:00
ImageSequence.py Merge pull request #1686 from radarhere/seek 2016-01-31 09:08:09 -08:00
ImageShow.py Fix "invalid escape sequence" warning in Python 3.6 2016-09-27 19:26:57 -04:00
ImageStat.py Replaced old-style classes 2015-05-27 00:07:21 +10:00
ImageTk.py remove end of file banner from all files 2016-07-10 14:11:28 +03:00
ImageTransform.py Merge pull request #2012 from uploadcare/endless-files 2016-07-11 14:15:02 +04:00
ImageWin.py remove end of file banner from all files 2016-07-10 14:11:28 +03:00
ImImagePlugin.py Flake8 fixes 2015-08-25 22:27:18 +10:00
ImtImagePlugin.py Fix BytesWarning discovered while running tests 2016-10-22 12:35:44 -07:00
IptcImagePlugin.py Removed 'Debugging' open_ppm call that didn't check file provided parameters for sanity 2016-10-03 07:27:02 -07:00
Jpeg2KImagePlugin.py Removed whitespace from blank lines 2016-09-03 12:23:42 +10:00
JpegImagePlugin.py Merge pull request #2240 from uploadcare/draft-min-scale 2016-11-22 15:22:59 +00:00
JpegPresets.py Changed no longer found URL to archive URL 2016-02-28 22:36:35 +11:00
McIdasImagePlugin.py Changed register calls to use format property 2015-12-25 14:15:01 +11:00
MicImagePlugin.py Flake8 fixes 2015-08-25 22:27:18 +10:00
MpegImagePlugin.py Flake8 fixes 2015-08-25 22:27:18 +10:00
MpoImagePlugin.py Flake8 fixes 2015-08-25 22:27:18 +10:00
MspImagePlugin.py Flake8 fixes 2015-08-25 22:27:18 +10:00
OleFileIO-README.md Updated PIL license in OleFILEIO README [ci skip] 2016-03-29 20:01:39 +11:00
OleFileIO.py Updated OleFileIO doc links 2016-04-19 07:41:14 -07:00
PaletteFile.py Replaced old-style classes 2015-05-27 00:07:21 +10:00
PalmImagePlugin.py Replaced range(len()) 2016-11-06 12:38:59 +11:00
PcdImagePlugin.py Flake8 fixes 2015-08-25 22:27:18 +10:00
PcfFontFile.py Removed or commented unused variables 2015-04-24 16:02:38 +10:00
PcxImagePlugin.py Changed register calls to use format property 2015-07-04 23:29:58 +10:00
PdfImagePlugin.py Merge pull request #1398 from mrTable/master 2015-10-01 07:54:26 -07:00
PixarImagePlugin.py Added _accept hook for PixarImagePlugin 2016-04-19 20:59:32 +10:00
PngImagePlugin.py Fix "invalid escape sequence" bytestring warnings in Python 3.6 2016-10-31 11:48:59 -04:00
PpmImagePlugin.py Removed 'Debugging' open_ppm call that didn't check file provided parameters for sanity 2016-10-03 07:27:02 -07:00
PsdImagePlugin.py Changed register calls to use format property 2015-07-04 23:29:58 +10:00
PSDraw.py Fixed PSDraw stdout Python 3 compatibility 2015-07-31 20:59:59 +10:00
PyAccess.py remove end of file banner from all files 2016-07-10 14:11:28 +03:00
SgiImagePlugin.py remove end of file banner from all files 2016-07-10 14:11:28 +03:00
SpiderImagePlugin.py Fixed typo 2016-11-19 10:45:33 +11:00
SunImagePlugin.py Review comments 2016-11-23 05:33:02 -08:00
TarIO.py Converted documentation 2016-09-24 19:10:46 +10:00
TgaImagePlugin.py unused imports 2015-09-15 04:04:27 +03:00
TiffImagePlugin.py Drop support for Python 2.6 2016-11-22 04:23:55 -08:00
TiffTags.py Drop support for Python 2.6 2016-11-22 04:23:55 -08:00
WalImageFile.py Added decompression bomb check to WalImageFile 2016-11-26 11:50:56 +11:00
WebPImagePlugin.py Changed register calls to use format property 2015-07-04 23:29:58 +10:00
WmfImagePlugin.py EMF: support negative bounding box coordinates (#2249) 2016-11-27 16:03:51 +00:00
XbmImagePlugin.py Fix "invalid escape sequence" bytestring warnings in Python 3.6 2016-10-31 11:48:59 -04:00
XpmImagePlugin.py Flake8 fixes 2015-08-25 22:27:18 +10:00
XVThumbImagePlugin.py Flake8 fixes 2016-09-03 12:17:22 +10:00