From fc4dbf848406c43961c59584d669f7895bd5f45a Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 14 Sep 2019 12:29:33 +0300 Subject: [PATCH 1/4] Test Docker with GitHub Actions --- .github/workflows/test-docker.yml | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/test-docker.yml diff --git a/.github/workflows/test-docker.yml b/.github/workflows/test-docker.yml new file mode 100644 index 000000000..09beb2fdd --- /dev/null +++ b/.github/workflows/test-docker.yml @@ -0,0 +1,40 @@ +name: Test Docker + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + docker: [ + alpine, + arch, + ubuntu-16.04-xenial-amd64, + ubuntu-18.04-bionic-amd64, + debian-9-stretch-x86, + debian-10-buster-x86, + centos-6-amd64, + centos-7-amd64, + amazon-1-amd64, + amazon-2-amd64, + fedora-29-amd64, + fedora-30-amd64, + ] + dockerTag: [master] + + name: ${{ matrix.docker }} + + steps: + - uses: actions/checkout@v1 + + - name: Docker pull + run: | + docker pull pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} + + - name: Docker build + run: | + # The Pillow user in the docker container is UID 1000 + sudo chown -R 1000 $GITHUB_WORKSPACE + docker run -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} From 1c493fb4fa6fcab3417a3eb1cecd6847dfa2c8e6 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 10 Oct 2019 06:31:18 +1100 Subject: [PATCH 2/4] Added Python 3.8 rc1 --- .appveyor.yml | 6 ++++++ winbuild/config.py | 1 + 2 files changed, 7 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index f299794b6..09951f0f8 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -34,9 +34,15 @@ environment: EXECUTABLE: bin/pypy.exe PIP_DIR: bin VENV: YES + - PYTHON: C:\Python38rc1-x64 install: +- ps: | + if ($env:PYTHON -eq "C:\Python38rc1-x64") { + curl -o install_python.ps1 https://raw.githubusercontent.com/matthew-brett/multibuild/d0cf77e62028704875073e3dc4626f61d1c33b0e/install_python.ps1 + .\install_python.ps1 + } - curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/master.zip - 7z x pillow-depends.zip -oc:\ - mv c:\pillow-depends-master c:\pillow-depends diff --git a/winbuild/config.py b/winbuild/config.py index 16a1d9cad..fb45f4527 100644 --- a/winbuild/config.py +++ b/winbuild/config.py @@ -10,6 +10,7 @@ pythons = { "36": {"compiler": 7.1, "vc": 2015}, "pypy3": {"compiler": 7.1, "vc": 2015}, "37": {"compiler": 7.1, "vc": 2015}, + "38rc1-x64": {"compiler": 7.1, "vc": 2015}, } VIRT_BASE = "c:/vp/" From f2abab474da584ec753b941a97f9843c10e5e40b Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 11 Oct 2019 22:04:21 +1100 Subject: [PATCH 3/4] Added GitHub Actions badges [ci skip] --- README.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 6b783a95a..e35091bae 100644 --- a/README.rst +++ b/README.rst @@ -14,7 +14,7 @@ Pillow is the friendly PIL fork by `Alex Clark and Contributors Date: Fri, 11 Oct 2019 22:40:31 +1100 Subject: [PATCH 4/4] Added orientation note [ci skip] --- docs/handbook/concepts.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/handbook/concepts.rst b/docs/handbook/concepts.rst index 582866345..7e782e743 100644 --- a/docs/handbook/concepts.rst +++ b/docs/handbook/concepts.rst @@ -104,6 +104,15 @@ the file format handler (see the chapter on :ref:`image-file-formats`). Most handlers add properties to the :py:attr:`~PIL.Image.Image.info` attribute when loading an image, but ignore it when saving images. +Orientation +----------- + +A common element of the :py:attr:`~PIL.Image.Image.info` attribute for JPG and +TIFF images is the EXIF orientation tag. This is an instruction for how the +image data should be oriented. For example, it may instruct an image to be +rotated by 90 degrees, or to be mirrored. To apply this information to an +image, :py:meth:`~PIL.ImageOps.exif_transpose` can be used. + .. _concept-filters: Filters