diff --git a/src/components/appRouter.js b/src/components/appRouter.js index 28cf91ef15..db1e68048f 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -446,7 +446,7 @@ class AppRouter { normalizeImageOptions(options) { let setQuality; - if (options.maxWidth || options.width || options.maxHeight || options.height) { + if (options.maxWidth || options.width || options.maxHeight || options.height || options.fillWidth || options.fillHeight) { setQuality = true; } diff --git a/src/components/cardbuilder/cardBuilder.js b/src/components/cardbuilder/cardBuilder.js index 9b5f18ed60..953d270df3 100644 --- a/src/components/cardbuilder/cardBuilder.js +++ b/src/components/cardbuilder/cardBuilder.js @@ -615,8 +615,8 @@ import ServerConnections from '../ServerConnections'; if (imgTag && imgType) { imgUrl = apiClient.getScaledImageUrl(itemId, { type: imgType, - maxHeight: height, - maxWidth: width, + fillHeight: height, + fillWidth: width, tag: imgTag }); } diff --git a/src/components/listview/listview.js b/src/components/listview/listview.js index c7dc0be3ae..6184ff3aaf 100644 --- a/src/components/listview/listview.js +++ b/src/components/listview/listview.js @@ -76,12 +76,13 @@ import ServerConnections from '../ServerConnections'; return ''; } - function getImageUrl(item, width) { + function getImageUrl(item, size) { const apiClient = ServerConnections.getApiClient(item.ServerId); let itemId; const options = { - maxWidth: width, + fillWidth: size, + fillHeight: size, type: 'Primary' }; @@ -105,10 +106,11 @@ import ServerConnections from '../ServerConnections'; return null; } - function getChannelImageUrl(item, width) { + function getChannelImageUrl(item, size) { const apiClient = ServerConnections.getApiClient(item.ServerId); const options = { - maxWidth: width, + fillWidth: size, + fillHeight: size, type: 'Primary' }; diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index 2673f5c841..6defed364a 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -156,7 +156,7 @@ function backdropImageUrl(apiClient, item, options) { options.type = options.type || 'Backdrop'; // If not resizing, get the original image - if (!options.maxWidth && !options.width && !options.maxHeight && !options.height) { + if (!options.maxWidth && !options.width && !options.maxHeight && !options.height && !options.fillWidth && !options.fillHeight) { options.quality = 100; } diff --git a/src/components/slideshow/slideshow.js b/src/components/slideshow/slideshow.js index acef913e0d..9f82a0ec73 100644 --- a/src/components/slideshow/slideshow.js +++ b/src/components/slideshow/slideshow.js @@ -71,7 +71,7 @@ function getBackdropImageUrl(item, options, apiClient) { options.type = options.type || 'Backdrop'; // If not resizing, get the original image - if (!options.maxWidth && !options.width && !options.maxHeight && !options.height) { + if (!options.maxWidth && !options.width && !options.maxHeight && !options.height && !options.fillWidth && !options.fillHeight) { options.quality = 100; }