diff --git a/RMuseum/Services/Implementation/ArtifactService-Partials/ArtifactService-RemoveOriginalImages.cs b/RMuseum/Services/Implementation/ArtifactService-Partials/ArtifactService-RemoveOriginalImages.cs index b99294cc..d390c0df 100644 --- a/RMuseum/Services/Implementation/ArtifactService-Partials/ArtifactService-RemoveOriginalImages.cs +++ b/RMuseum/Services/Implementation/ArtifactService-Partials/ArtifactService-RemoveOriginalImages.cs @@ -35,7 +35,7 @@ namespace RMuseum.Services.Implementation var srcPath = Configuration.GetSection("PictureFileService")["StoragePath"]; var trashPath = Configuration.GetSection("PictureFileService")["TrashStoragePath"]; - var images = await context.PictureFiles.Where(p => p.StoredFileName != null && p.SrcUrl != null).ToListAsync(); + var images = await context.PictureFiles.Where(p => p.StoredFileName != null && p.SrcUrl != null && p.NormalSizeImageStoredFileName.IndexOf("orig") != 0 ).ToListAsync(); int progress = 0;