1
0
Fork 0
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:
Luke Pulverenti 2014-05-23 19:58:28 -04:00
parent 8cadabcbe5
commit 5677ce1011
27 changed files with 295 additions and 195 deletions

View file

@ -389,10 +389,11 @@
if (nowPlayingItem.LogoItemId) {
imgUrl = ApiClient.getImageUrl(nowPlayingItem.LogoItemId, {
imgUrl = ApiClient.getScaledImageUrl(nowPlayingItem.LogoItemId, {
tag: session.LogoImageTag,
height: 48,
maxHeight: 24,
maxWidth: 130,
type: 'Logo'
});
@ -579,27 +580,27 @@
if (item && item.BackdropImageTag) {
return ApiClient.getImageUrl(item.BackdropItemId, {
return ApiClient.getScaledImageUrl(item.BackdropItemId, {
type: "Backdrop",
width: 810,
width: 275,
tag: item.BackdropImageTag
});
}
if (item && item.ThumbImageTag) {
return ApiClient.getImageUrl(item.ThumbItemId, {
return ApiClient.getScaledImageUrl(item.ThumbItemId, {
type: "Thumb",
width: 810,
width: 275,
tag: item.ThumbImageTag
});
}
if (item && item.PrimaryImageTag) {
return ApiClient.getImageUrl(item.PrimaryImageItemId, {
return ApiClient.getScaledImageUrl(item.PrimaryImageItemId, {
type: "Primary",
width: 810,
width: 275,
tag: item.PrimaryImageTag
});
}