33 lines
951 B
C#
33 lines
951 B
C#
namespace GozareshgirProgramManager.Application.Services.FileManagement;
|
|
|
|
/// <summary>
|
|
/// سرویس تولید thumbnail برای تصاویر و ویدیوها
|
|
/// </summary>
|
|
public interface IThumbnailGeneratorService
|
|
{
|
|
/// <summary>
|
|
/// تولید thumbnail برای تصویر
|
|
/// </summary>
|
|
Task<(string ThumbnailPath, string ThumbnailUrl)?> GenerateImageThumbnailAsync(
|
|
string imagePath,
|
|
int width = 200,
|
|
int height = 200);
|
|
|
|
/// <summary>
|
|
/// تولید thumbnail برای ویدیو
|
|
/// </summary>
|
|
Task<(string ThumbnailPath, string ThumbnailUrl)?> GenerateVideoThumbnailAsync(
|
|
string videoPath);
|
|
|
|
/// <summary>
|
|
/// حذف thumbnail
|
|
/// </summary>
|
|
Task DeleteThumbnailAsync(string thumbnailPath);
|
|
|
|
/// <summary>
|
|
/// دریافت ابعاد تصویر
|
|
/// </summary>
|
|
Task<(int Width, int Height)?> GetImageDimensionsAsync(string imagePath);
|
|
}
|
|
|