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
|
@ -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
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue