wip
This commit is contained in:
parent
81c8b4181c
commit
a556a4b735
@ -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++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user