diff --git a/app/Actions/Import/Pipes/ImportPhotos.php b/app/Actions/Import/Pipes/ImportPhotos.php index eb8906eccfa..e62a85a566a 100644 --- a/app/Actions/Import/Pipes/ImportPhotos.php +++ b/app/Actions/Import/Pipes/ImportPhotos.php @@ -80,7 +80,7 @@ private function importImagesForNode(FolderNode $node): void } foreach ($image_paths as $idx => $image_path) { - $this->importSingleImage($image_path, $node->album, $idx / $total * 100); + $this->importSingleImage($image_path, $node->album, intval($idx / $total * 100)); } // Dispatch recompute jobs for the album after importing photos