From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- MediaBrowser.Controller/Drawing/IImageEncoder.cs | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 MediaBrowser.Controller/Drawing/IImageEncoder.cs (limited to 'MediaBrowser.Controller/Drawing/IImageEncoder.cs') diff --git a/MediaBrowser.Controller/Drawing/IImageEncoder.cs b/MediaBrowser.Controller/Drawing/IImageEncoder.cs new file mode 100644 index 000000000..757448eb2 --- /dev/null +++ b/MediaBrowser.Controller/Drawing/IImageEncoder.cs @@ -0,0 +1,49 @@ +using System; +using MediaBrowser.Model.Drawing; + +namespace MediaBrowser.Controller.Drawing +{ + public interface IImageEncoder + { + /// + /// Gets the supported input formats. + /// + /// The supported input formats. + string[] SupportedInputFormats { get; } + /// + /// Gets the supported output formats. + /// + /// The supported output formats. + ImageFormat[] SupportedOutputFormats { get; } + + /// + /// Encodes the image. + /// + string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, int quality, ImageProcessingOptions options, ImageFormat outputFormat); + + /// + /// Creates the image collage. + /// + /// The options. + void CreateImageCollage(ImageCollageOptions options); + /// + /// Gets the name. + /// + /// The name. + string Name { get; } + + /// + /// Gets a value indicating whether [supports image collage creation]. + /// + /// true if [supports image collage creation]; otherwise, false. + bool SupportsImageCollageCreation { get; } + + /// + /// Gets a value indicating whether [supports image encoding]. + /// + /// true if [supports image encoding]; otherwise, false. + bool SupportsImageEncoding { get; } + + ImageSize GetImageSize(string path); + } +} -- cgit v1.2.3