Merge pull request #2514 from oddstr13/image-fill-resize

Add support for fillWidth and fillHeight
This commit is contained in:
Bill Thornton
2021-04-11 12:30:06 -04:00
committed by GitHub
5 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -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;
}