mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
factor device pixel ratio into downloaded image size
This commit is contained in:
parent
8cadabcbe5
commit
5677ce1011
27 changed files with 295 additions and 195 deletions
|
@ -39,15 +39,15 @@
|
|||
|
||||
if (programInfo.ImageTags && programInfo.ImageTags.Primary) {
|
||||
|
||||
var imgUrl = ApiClient.getImageUrl(programInfo.Id, {
|
||||
maxwidth: 200,
|
||||
maxheight: 200,
|
||||
var imgUrl = ApiClient.getScaledImageUrl(programInfo.Id, {
|
||||
maxWidth: 200,
|
||||
maxHeight: 200,
|
||||
tag: programInfo.ImageTags.Primary,
|
||||
type: "Primary"
|
||||
});
|
||||
|
||||
$('.timerPageImageContainer', page).css("display", "inline-block")
|
||||
.html('<img src="' + imgUrl + '" />');
|
||||
.html('<img src="' + imgUrl + '" style="max-width:200px;max-height:200px;" />');
|
||||
|
||||
} else {
|
||||
$('.timerPageImageContainer', page).hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue