Skip to content

Commit d8129f8

Browse files
authored
Merge pull request #764 from mapnik/image_fix
Fixes zero width or height image reading
2 parents 96453d0 + 0b9503e commit d8129f8

18 files changed

Lines changed: 110 additions & 29 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ node_modules
77
src/*.*~
88
npm-debug.log
99
test/tmp
10+
test/data/images/*actual*
1011
test/data/vector_tile/*actual*
1112
test/data/vector_tile/pasted/*actual*
1213
*.7z

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,14 @@ matrix:
6565
- os: linux
6666
env: BUILDTYPE=debug
6767
node_js: 6
68+
# linux publishable node v7
6869
- os: linux
6970
env: BUILDTYPE=release
7071
node_js: 7
72+
# linux publishable node v8
73+
- os: linux
74+
env: BUILDTYPE=release
75+
node_js: 8
7176
# osx publishable node v0.10
7277
- os: osx
7378
osx_image: xcode8.3
@@ -88,6 +93,11 @@ matrix:
8893
osx_image: xcode8.2
8994
env: BUILDTYPE=release
9095
node_js: 7
96+
# osx publishable node v8
97+
- os: osx
98+
osx_image: xcode8.2
99+
env: BUILDTYPE=release
100+
node_js: 8
91101
# Sanitizer build node v4/Debug
92102
- os: linux
93103
env: BUILDTYPE=debug TOOLSET=-asan

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## 3.6.1
4+
5+
Updated for a fix associated with mapnik-vector-tile where images could be requested that would have a width or height of zero resulting
6+
in exceptions.
7+
8+
Several fixes associated with different mapnik by updating to use 3.0.14. Please see mapnik change log for specifics. In
9+
general note worthy changes from mapnik include stricter geojson parsing, fixes for raster plugin, fixes to image scaling,
10+
changing the meaning of filter-factor, and improvements to the the TIFF decoder.
11+
12+
Due to changes in the mapnik core version during this update you should see some changes in the image rescaling of raster and gdal plugin source data. This will definitely change the expected output. This is due to fixes in long standing bugs in the mapnik library.
13+
14+
- Updated to mapnik-vector-tile@1.4.0
15+
- Mapnik minimum version updated to 3.0.14. Does not work with mapnik 3.1.x currently.
16+
- Fixed tests around zlib compression and decompression when comparing to node's implementation
17+
- Fixes rare situation of seg faults during mapnik-vector-tile image processing.
18+
- Corrects the resolution of images in mapnik-vector-tile when using parameters from postgis plugin.
19+
320
## 3.6.0
421

522
This release has major performance and stability improvements.

appveyor.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,16 @@ environment:
1010
- nodejs_version: 0.10
1111
msvs_toolset: 14
1212
platform: x86
13-
# Fixed at version until https://github.com/nodejs/node/issues/12244 is resolved by nodejs
14-
- nodejs_version: 4.8.1
13+
- nodejs_version: 4
1514
msvs_toolset: 14
1615
platform: x64
17-
- nodejs_version: 4.8.1
16+
- nodejs_version: 4
1817
msvs_toolset: 14
1918
platform: x86
20-
# Fixed at version until https://github.com/nodejs/node/issues/12244 is resolved by nodejs
21-
- nodejs_version: 6.10.1
19+
- nodejs_version: 6
2220
msvs_toolset: 14
2321
platform: x64
24-
- nodejs_version: 6.10.1
22+
- nodejs_version: 6
2523
msvs_toolset: 14
2624
platform: x86
2725
- nodejs_version: 8

install_mason.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ICU_VERSION="57.1"
1212

1313
if [ ! -f ./mason/mason.sh ]; then
1414
mkdir -p ./mason
15-
curl -sSfL https://github.com/mapbox/mason/archive/d1a9856.tar.gz | tar --gunzip --extract --strip-components=1 --exclude="*md" --exclude="test*" --directory=./mason
15+
curl -sSfL https://github.com/mapbox/mason/archive/9eac60614fda7cfeb8a9e81d18e8cca5c1ae8fbc.tar.gz | tar --gunzip --extract --strip-components=1 --exclude="*md" --exclude="test*" --directory=./mason
1616
fi
1717

1818
if [ ! -f ./mason_packages/.link/bin/mapnik-config ]; then
@@ -38,5 +38,5 @@ if [ ! -f ./mason_packages/.link/bin/mapnik-config ]; then
3838
# NOTE: sync this version with the `mapnik_version` in package.json (which is used for windows builds)
3939
# In the future we could pull from that version automatically if mason were to support knowing the right dep
4040
# versions to install automatically. Until then there is not much point since the deps are still hardcoded here.
41-
install mapnik 3.0.13-1
41+
install mapnik 3.0.14
4242
fi

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"url": "http://github.com/mapnik/node-mapnik",
55
"homepage": "http://mapnik.org",
66
"author": "Dane Springmeyer <dane@mapbox.com> (mapnik.org)",
7-
"version": "3.6.0",
8-
"mapnik_version":"v3.0.13",
7+
"version": "3.6.1",
8+
"mapnik_version":"v3.0.14",
99
"main": "./lib/mapnik.js",
1010
"binary": {
1111
"module_name": "mapnik",
@@ -36,7 +36,7 @@
3636
],
3737
"license": "BSD-3-Clause",
3838
"dependencies": {
39-
"mapnik-vector-tile": "1.3.0",
39+
"mapnik-vector-tile": "1.4.0",
4040
"protozero": "1.5.1",
4141
"nan": "~2.5.0",
4242
"node-pre-gyp": "~0.6.30"

test/data/images/14_2788_6533.webp

96.3 KB
Loading
859 Bytes
Loading
4 Bytes
Binary file not shown.
-42 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)