This commit is contained in:
2026-05-17 20:54:09 -04:00
parent 6da2183583
commit 74c21ee5cc
3000 changed files with 11794 additions and 15301 deletions

View File

@@ -0,0 +1,20 @@
using System.Threading.Tasks;
namespace OpenArchival.DataAccess.FileAccessManager;
public interface IImageThumbnailer
{
/// <summary>
/// Generates small and large thumbnails for the given image file.
/// </summary>
/// <param name="originalFilePath">The full path to the original image file.</param>
/// <returns>A task that returns a ThumbnailResult containing the paths to the generated thumbnails.</returns>
Task<ThumbnailResult> GenerateThumbnailsAsync(string originalFilePath);
/// <summary>
/// Checks if the file at the given path is a supported image format.
/// </summary>
bool IsSupportedImage(string filePath);
}
public record ThumbnailResult(string SmallThumbnailPath, string LargeThumbnailPath);