IImageEncoder.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Drawing;
  4. namespace MediaBrowser.Controller.Drawing
  5. {
  6. public interface IImageEncoder
  7. {
  8. /// <summary>
  9. /// Gets the supported input formats.
  10. /// </summary>
  11. /// <value>The supported input formats.</value>
  12. IReadOnlyCollection<string> SupportedInputFormats { get; }
  13. /// <summary>
  14. /// Gets the supported output formats.
  15. /// </summary>
  16. /// <value>The supported output formats.</value>
  17. IReadOnlyCollection<ImageFormat> SupportedOutputFormats { get; }
  18. /// <summary>
  19. /// Gets the name.
  20. /// </summary>
  21. /// <value>The name.</value>
  22. string Name { get; }
  23. /// <summary>
  24. /// Gets a value indicating whether [supports image collage creation].
  25. /// </summary>
  26. /// <value><c>true</c> if [supports image collage creation]; otherwise, <c>false</c>.</value>
  27. bool SupportsImageCollageCreation { get; }
  28. /// <summary>
  29. /// Gets a value indicating whether [supports image encoding].
  30. /// </summary>
  31. /// <value><c>true</c> if [supports image encoding]; otherwise, <c>false</c>.</value>
  32. bool SupportsImageEncoding { get; }
  33. ImageDimensions GetImageSize(string path);
  34. /// <summary>
  35. /// Encodes the image.
  36. /// </summary>
  37. string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, int quality, ImageProcessingOptions options, ImageFormat outputFormat);
  38. /// <summary>
  39. /// Creates the image collage.
  40. /// </summary>
  41. /// <param name="options">The options.</param>
  42. void CreateImageCollage(ImageCollageOptions options);
  43. }
  44. }