Opened 19 years ago
Closed 19 years ago
#4335 closed defect (fixed)
Mythgallery double scaling images
| Reported by: | stuartm | Owned by: | stuartm |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.21 |
| Component: | mythgallery | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
When thumbnails are cached they are scaled to the correct size, yet IconView::LoadThumbnail() is running smoothScale on them again after they are retrieved from the cache. This is unnecessary overhead.
Attached patch fixes this, but is untested. I stumbled across the problem while trying to figure out why alpha on thumbnails was being ignored.
Even further scaling seems to occur in IconView::UpdateView but I couldn't tell whether this was also unnecessary at first glance.
Attachments (1)
Change History (4)
by , 19 years ago
| Attachment: | mythgallery_scaleonce.diff added |
|---|
comment:1 by , 19 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 19 years ago
| Status: | assigned → accepted |
|---|
comment:3 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.

(In [15791]) Remove redundant scaling code from IconView::LoadThumbnail(). Since we already scale the thumbnail when creating and caching it, it's not necessary to do so again after loading it.
Closes #4335