Skip to content

Commit

Permalink
Cleanup logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasteuwen committed Sep 28, 2023
1 parent 6e79929 commit 021fc40
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions dlup/backends/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,6 @@ def get_thumbnail(self, size: int | tuple[int, int]) -> PIL.Image.Image:
downsample = max(*(dim / thumb for dim, thumb in zip(self.dimensions, size)))
level = self.get_best_level_for_downsample(downsample)

# Debugging logs:
print(f"Downsample: {downsample}")
print(f"Level chosen: {level}")
print(f"Level dimensions at chosen level: {self.level_dimensions[level]}")

region = self.read_region((0, 0), level, self.level_dimensions[level])

# More debugging:
print(f"Region type: {type(region)}")

thumbnail = (
self.read_region((0, 0), level, self.level_dimensions[level])
.convert("RGB")
Expand Down

0 comments on commit 021fc40

Please sign in to comment.