Test j2k
logic typo fix
Merge branch 'master' of https://github.com/dvska/Pillow into cleanup
Merge commit '329fd00d3fe2709c043c73e075da03b6d9729a2b' into cleanup
Cherry-pick of portions of patch a500ca13933183fa845f09762fc2948fbfe409f1, many shortcut ops added, no functional changes
This patch allows a JPEG image to be saved with a specific qtables
value (in dictionary format).

Previously, this would throw a TypeError when checking if the qtables
value was actually a preset. By adding an isStringType check, we can
avoid this error.
Merge from master, pre-unittest conversion
Merge from master
Merge branch 'master' into jpeg_qtables
Fixed JPEG qtables test
Additional jpeg qtables tests
Added docs for JPEG qtables and subsampling
Merge branch 'cleanup' of https://github.com/wiredfool/Pillow into wiredfool-cleanup

Conflicts:
	Tests/test_file_jpeg2k.py
	Tests/test_image_transform.py
	Tests/test_imagesequence.py
flake8 on morphology changes
Update a docstring [CI skip]
Make test runnable on its own
Match real palette format in ImagePalette.save()
Update ImagePalette.py

According to __init__, using `len(self.mode)` might be better. Tested on my machine.
Merge pull request #654 from wiredfool/cleanup

Thanks.
Merge pull request #714 from wiredfool/jpeg_qtables

JPEG qtables