BotSharp/src/Infrastructure/BotSharp.Abstraction/Files/Converters/IImageConverter.cs

24 lines
911 B
C#
Raw Normal View History

2024-06-28 21:16:51 +00:00
namespace BotSharp.Abstraction.Files.Converters;
2025-09-11 22:36:20 +00:00
public interface IImageConverter
2024-06-28 21:16:51 +00:00
{
2024-08-31 00:31:18 +00:00
public string Provider { get; }
2024-06-28 21:16:51 +00:00
/// <summary>
/// Convert pdf pages to images, and return a list of image file paths
/// </summary>
/// <param name="pdfLocation">Pdf file location</param>
/// <param name="imageFolderLocation">Image folder location</param>
/// <returns></returns>
2025-09-11 22:36:20 +00:00
Task<IEnumerable<string>> ConvertPdfToImages(string pdfLocation, string imageFolderLocation) => throw new NotImplementedException();
/// <summary>
/// Convert an image to PNG with RGBA
/// </summary>
/// <param name="binary"></param>
2025-09-12 16:30:41 +00:00
/// <param name="options"></param>
2025-09-11 22:36:20 +00:00
/// <returns></returns>
2025-09-12 16:30:41 +00:00
/// <exception cref="NotImplementedException"></exception>
Task<BinaryData> ConvertImage(BinaryData binary, ImageConvertOptions? options = null) => throw new NotImplementedException();
2024-06-28 21:16:51 +00:00
}