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

@ -35,9 +35,10 @@
html += '<div style="width:120px;height:180px;">';
if (item.ImageTags.Primary) {
var imgUrl = ApiClient.getImageUrl(item.Id, {
var imgUrl = ApiClient.getScaledImageUrl(item.Id, {
type: "Primary",
width: 300,
maxWidth: 120,
maxHeight: 180,
tag: item.ImageTags.Primary
});
@ -65,9 +66,10 @@
if (item.PrimaryImageTag) {
var imgUrl = ApiClient.getImageUrl(item.ItemId, {
var imgUrl = ApiClient.getScaledImageUrl(item.ItemId, {
type: "Primary",
width: 200,
maxWidth: 100,
maxHeight: 150,
tag: item.PrimaryImageTag
});