Skip to content

Commit

Permalink
Merge pull request #1447 from girder/multisource-scaling-bypass
Browse files Browse the repository at this point in the history
Bypass some scaling code when compositing multi sources
  • Loading branch information
manthey authored Jan 29, 2024
2 parents 2f41f81 + 9daa34f commit 2f83919
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 1.27.2

### Improvements
- Support range requests when downloading DICOMweb files ([#1444](../../pull/1444))
- Bypass some scaling code when compositing multi sources ([#1447](../../pull/1447))

## 1.27.1

### Improvements
Expand Down
3 changes: 2 additions & 1 deletion sources/multi/large_image_source_multi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,8 @@ def _addSourceToTile(self, tile, sourceEntry, corners, scale):
transform[0][0] > 0 and transform[0][1] == 0 and
transform[1][0] == 0 and transform[1][1] > 0 and
transform[0][2] % scaleX == 0 and transform[1][2] % scaleY == 0)) and
(scaleX % scale) == 0 and (scaleY % scale) == 0):
((scaleX % scale) == 0 or math.log(scaleX, 2).is_integer) and
((scaleY % scale) == 0 or math.log(scaleY, 2).is_integer)) and False:
srccorners = (
list(np.dot(bbox['inverse'], np.array(corners).T).T)
if transform is not None else corners)
Expand Down

0 comments on commit 2f83919

Please sign in to comment.