From f509f43472d3d126bcdd2dd55da34a5eea3b848c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Kvist?= Date: Fri, 18 May 2018 07:42:24 +0200 Subject: [PATCH 1/3] Change offset of clearRect. --- src/tile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tile.js b/src/tile.js index de1eb40d..28977f7d 100644 --- a/src/tile.js +++ b/src/tile.js @@ -358,8 +358,8 @@ $.Tile.prototype = { context.clearRect( position.x + 1, position.y + 1, - size.x - 2, - size.y - 2 + size.x - 1, + size.y - 1 ); } From bbe34e0816d449b4599bfdf97bb836d7602b402a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Kvist?= Date: Mon, 4 Jun 2018 11:16:23 +0200 Subject: [PATCH 2/3] Remove offset for transparent tile. --- src/tile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tile.js b/src/tile.js index 28977f7d..aca41e1c 100644 --- a/src/tile.js +++ b/src/tile.js @@ -356,10 +356,10 @@ $.Tile.prototype = { //clearing only the inside of the rectangle occupied //by the png prevents edge flikering context.clearRect( - position.x + 1, - position.y + 1, - size.x - 1, - size.y - 1 + position.x, + position.y, + size.x, + size.y ); } From 8f0711e26e5b85e8cfca8faa5719f7ede4c5728f Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Wed, 6 Jun 2018 11:51:18 -0700 Subject: [PATCH 3/3] Changelog #1470 --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index 6b0f5458..a6471ab9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -13,6 +13,7 @@ OPENSEADRAGON CHANGELOG * Added optional zoom in the middle of the image instead of pointer position (#1423) * Now supporting square edge tiles that are padded rather than cropped (#1426) * Fixed an issue causing the simple image tileSource to sometimes show duplicate copies (#1370) +* Fixed an issue causing seams to appear in semi-transparent PNG tiled images (#1470) 2.3.1: