add testcase for broken premultiplied alpha in resampling - refs #1489 and mapbox/tilemill#1888

This commit is contained in:
Dane Springmeyer 2013-01-31 18:37:01 -05:00
parent 1ccd250980
commit 523f00c34f
4 changed files with 19 additions and 0 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -0,0 +1,18 @@
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="#ffffff">
<Style name="style">
<Rule>
<RasterSymbolizer opacity="0.1" scaling="spline36" />
</Rule>
</Style>
<Layer name="layer"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName>style</StyleName>
<Datasource>
<Parameter name="file">../data/snow-cover.tif</Parameter>
<Parameter name="type">gdal</Parameter>
</Datasource>
</Layer>
</Map>

View file

@ -70,6 +70,7 @@ files = [
{'name': "tiff-opaque-edge-gdal", 'sizes':[(256,256)]},
{'name': "tiff-opaque-edge-gdal2", 'sizes':[(600,400)]},
{'name': "tiff-opaque-edge-raster2", 'sizes':[(600,400)]},
{'name': "tiff-resampling", 'sizes':[(600,400)]},
# https://github.com/mapnik/mapnik/issues/1520
# commented because these are not critical failures
#{'name': "tiff-alpha-raster", 'sizes':[(600,400)]},