$thumbnailHighDpi =
isset($data['thumbnailHighDpi'
]) &&
$data['thumbnailHighDpi'
];
$thumbnailQuality =
$data['thumbnailQuality'
] ?? 90;
$thumbnailHighDpiQuality =
$data['thumbnailHighDpiQuality'
] ?? 70;
$albumId =
$album->
getId();
if (empty($albumId) &&
$data['parent'
] !== null
) { /** @var Settings $parentSettings */
$parentSettings =
$data['parent'
]->
getSettings();
$thumbnailSizes =
$parentSettings->
getThumbnailSize();
$thumbnailHighDpi =
$parentSettings->
isThumbnailHighDpi();
$thumbnailHighDpiQuality =
$parentSettings->
getThumbnailHighDpiQuality();
$thumbnailQuality =
$parentSettings->
getThumbnailQuality();
$createThumbnails =
$parentSettings->
getCreateThumbnails();
} $settings->
setCreateThumbnails($createThumbnails);
$settings->
setThumbnailSize(empty($thumbnailSizes) ? '' :
$thumbnailSizes);
$settings->
setThumbnailHighDpi($thumbnailHighDpi);
$settings->
setThumbnailQuality($thumbnailQuality);
$settings->
setThumbnailHighDpiQuality($thumbnailHighDpiQuality);
$settings->
setIcon($icon);