This commit is contained in:
Tobias Wohlleben 2025-01-22 15:49:26 +01:00
parent 81c8b4181c
commit a556a4b735

View File

@ -50,10 +50,17 @@ public class PictureGalleryService
// add if not exists // add if not exists
if (!this.thumbnails.ContainsKey(creationTime)) if (!this.thumbnails.ContainsKey(creationTime))
{
try
{ {
this.thumbnails.Add(creationTime, PictureGalleryService.CreateThumbnail(picturePath, 244, 0)); this.thumbnails.Add(creationTime, PictureGalleryService.CreateThumbnail(picturePath, 244, 0));
this._logger.Info($"Thumbnail '{picturePath}' successfully created"); this._logger.Info($"Thumbnail '{picturePath}' successfully created");
} }
catch (Exception e)
{
this._logger.Error("thumbnail could not created: " + picturePath + " | " + e.Message);
}
}
loop++; loop++;
} }