Skip to content

Commit fcae2f4

Browse files
authored
Merge branch 'main' into common_test_script
2 parents be3192e + e179d04 commit fcae2f4

File tree

8 files changed

+29
-13
lines changed

8 files changed

+29
-13
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ install:
3434
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
3535
- curl -fsSL -o nasm-win64.zip https://raw.githubusercontent.com/python-pillow/pillow-depends/main/nasm-2.16.03-win64.zip
3636
- 7z x nasm-win64.zip -oc:\
37-
- choco install ghostscript --version=10.3.1
38-
- path c:\nasm-2.16.03;C:\Program Files\gs\gs10.03.1\bin;%PATH%
37+
- choco install ghostscript --version=10.4.0
38+
- path c:\nasm-2.16.03;C:\Program Files\gs\gs10.04.0\bin;%PATH%
3939
- cd c:\pillow\winbuild\
4040
- ps: |
4141
c:\python39\python.exe c:\pillow\winbuild\build_prepare.py -v --depends=C:\pillow-depends\

.github/workflows/test-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ jobs:
8686
choco install nasm --no-progress
8787
echo "C:\Program Files\NASM" >> $env:GITHUB_PATH
8888
89-
choco install ghostscript --version=10.3.1 --no-progress
90-
echo "C:\Program Files\gs\gs10.03.1\bin" >> $env:GITHUB_PATH
89+
choco install ghostscript --version=10.4.0 --no-progress
90+
echo "C:\Program Files\gs\gs10.04.0\bin" >> $env:GITHUB_PATH
9191
9292
# Install extra test images
9393
xcopy /S /Y Tests\test-images\* Tests\images

CHANGES.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ Changelog (Pillow)
55
11.0.0 (unreleased)
66
-------------------
77

8+
- Use transposed size after opening for TIFF images #8390
9+
[radarhere, homm]
10+
11+
- Improve ImageFont error messages #8338
12+
[yngvem, radarhere, hugovk]
13+
14+
- Mention MAX_TEXT_CHUNK limit in PNG error message #8391
15+
[radarhere]
16+
17+
- Cast Dib handle to int #8385
18+
[radarhere]
19+
820
- Accept float stroke widths #8369
921
[radarhere]
1022

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ As of 2019, Pillow development is
5151
<a href="https://app.codecov.io/gh/python-pillow/Pillow"><img
5252
alt="Code coverage"
5353
src="https://codecov.io/gh/python-pillow/Pillow/branch/main/graph/badge.svg"></a>
54-
<a href="https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:pillow"><img
54+
<a href="https://issues.oss-fuzz.com/issues?q=title:pillow"><img
5555
alt="Fuzzing Status"
5656
src="https://oss-fuzz-build-logs.storage.googleapis.com/badges/pillow.svg"></a>
5757
</td>

depends/install_raqm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# install raqm
33

44

5-
archive=libraqm-0.10.1
5+
archive=libraqm-0.10.2
66

77
./download-and-extract.sh $archive https://raw.githubusercontent.com/python-pillow/pillow-depends/main/$archive.tar.gz
88

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Pillow for enterprise is available via the Tidelift Subscription. `Learn more <h
5454
:alt: Tidelift
5555

5656
.. image:: https://oss-fuzz-build-logs.storage.googleapis.com/badges/pillow.svg
57-
:target: https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:pillow
57+
:target: https://issues.oss-fuzz.com/issues?q=title:pillow
5858
:alt: Fuzzing Status
5959

6060
.. image:: https://img.shields.io/pypi/v/pillow.svg

src/libImaging/Geometry.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,10 @@ ImagingTransformAffine(
10351035
double xx, yy;
10361036
double xo, yo;
10371037

1038+
if (!imOut || !imIn || strcmp(imIn->mode, imOut->mode) != 0) {
1039+
return (Imaging)ImagingError_ModeError();
1040+
}
1041+
10381042
if (filterid || imIn->type == IMAGING_TYPE_SPECIAL) {
10391043
return ImagingGenericTransform(
10401044
imOut, imIn, x0, y0, x1, y1, affine_transform, a, filterid, fill
@@ -1046,10 +1050,6 @@ ImagingTransformAffine(
10461050
return ImagingScaleAffine(imOut, imIn, x0, y0, x1, y1, a, fill);
10471051
}
10481052

1049-
if (!imOut || !imIn || strcmp(imIn->mode, imOut->mode) != 0) {
1050-
return (Imaging)ImagingError_ModeError();
1051-
}
1052-
10531053
if (x0 < 0) {
10541054
x0 = 0;
10551055
}

winbuild/build_prepare.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,12 @@ def cmd_msbuild(
292292
},
293293
"build": [
294294
cmd_rmdir("objs"),
295-
cmd_msbuild("MSBuild.sln", "Release Static", "Clean"),
296-
cmd_msbuild("MSBuild.sln", "Release Static", "Build"),
295+
cmd_msbuild(
296+
r"builds\windows\vc2010\freetype.vcxproj", "Release Static", "Clean"
297+
),
298+
cmd_msbuild(
299+
r"builds\windows\vc2010\freetype.vcxproj", "Release Static", "Build"
300+
),
297301
cmd_xcopy("include", "{inc_dir}"),
298302
],
299303
"libs": [r"objs\{msbuild_arch}\Release Static\freetype.lib"],

0 commit comments

Comments
 (0)