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

@ -486,26 +486,26 @@
if (state.NowPlayingItem.PrimaryImageTag) {
url = ApiClient.getImageUrl(state.NowPlayingItem.PrimaryImageItemId, {
url = ApiClient.getScaledImageUrl(state.NowPlayingItem.PrimaryImageItemId, {
type: "Primary",
height: 80,
height: 40,
tag: state.NowPlayingItem.PrimaryImageTag
});
}
else if (state.NowPlayingItem.BackdropImageTag) {
url = ApiClient.getImageUrl(state.NowPlayingItem.BackdropItemId, {
url = ApiClient.getScaledImageUrl(state.NowPlayingItem.BackdropItemId, {
type: "Backdrop",
height: 80,
height: 40,
tag: state.NowPlayingItem.BackdropImageTag,
index: 0
});
} else if (state.NowPlayingItem.ThumbImageTag) {
url = ApiClient.getImageUrl(state.NowPlayingItem.ThumbImageItemId, {
url = ApiClient.getScaledImageUrl(state.NowPlayingItem.ThumbImageItemId, {
type: "Thumb",
height: 80,
height: 40,
tag: state.NowPlayingItem.ThumbImageTag
});
}