Skip to content

Commit

Permalink
Fix resolution for taxon and observation medium images
Browse files Browse the repository at this point in the history
  • Loading branch information
JWCook committed Dec 6, 2023
1 parent 2c477cb commit fab8fd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion naturtag/controllers/observation_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def load(self, obs: Observation):
self.image.observation = obs
set_pixmap_async(
self.image,
photo=Observation.default_photo,
photo=obs.default_photo,
size='medium',
priority=QThread.HighPriority,
)
self._update_nav_buttons()
Expand Down
7 changes: 6 additions & 1 deletion naturtag/controllers/taxon_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ def load(self, taxon: Taxon):
self.group_box.setTitle(taxon.full_name)
self.image.hover_event = True
self.image.taxon = taxon
set_pixmap_async(self.image, photo=taxon.default_photo, priority=QThread.HighPriority)
set_pixmap_async(
self.image,
photo=taxon.default_photo,
size='medium',
priority=QThread.HighPriority,
)
self._update_nav_buttons()

# Load additional thumbnails
Expand Down

0 comments on commit fab8fd7

Please sign in to comment.