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

22 lines
781 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>
/// <returns></returns>
Task<BinaryData> ConvertImageToRgbaPng(BinaryData binary) => throw new NotImplementedException();
2024-06-28 21:16:51 +00:00
}