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

@ -18,8 +18,8 @@
if (chapter.ImageTag) {
imgUrl = ApiClient.getImageUrl(itemId, {
width: 800,
imgUrl = ApiClient.getScaledImageUrl(itemId, {
width: 240,
tag: chapter.ImageTag,
type: "Chapter",
index: i
@ -509,26 +509,26 @@
}
else if (item.PrimaryImageTag) {
url = ApiClient.getImageUrl(item.PrimaryImageItemId, {
url = ApiClient.getScaledImageUrl(item.PrimaryImageItemId, {
type: "Primary",
height: 600,
height: 300,
tag: item.PrimaryImageTag
});
}
else if (item.BackdropImageTag) {
url = ApiClient.getImageUrl(item.BackdropItemId, {
url = ApiClient.getScaledImageUrl(item.BackdropItemId, {
type: "Backdrop",
height: 600,
height: 300,
tag: item.BackdropImageTag,
index: 0
});
} else if (item.ThumbImageTag) {
url = ApiClient.getImageUrl(item.ThumbImageItemId, {
url = ApiClient.getScaledImageUrl(item.ThumbImageItemId, {
type: "Thumb",
height: 600,
height: 300,
tag: item.ThumbImageTag
});
}