NullImageEncoder.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using MediaBrowser.Controller.Drawing;
  3. using MediaBrowser.Model.Drawing;
  4. namespace Emby.Drawing
  5. {
  6. public class NullImageEncoder : IImageEncoder
  7. {
  8. public string[] SupportedInputFormats =>
  9. new[]
  10. {
  11. "png",
  12. "jpeg",
  13. "jpg"
  14. };
  15. public ImageFormat[] SupportedOutputFormats => new[] { ImageFormat.Jpg, ImageFormat.Png };
  16. public void CropWhiteSpace(string inputPath, string outputPath)
  17. {
  18. throw new NotImplementedException();
  19. }
  20. public string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, int quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat)
  21. {
  22. throw new NotImplementedException();
  23. }
  24. public void CreateImageCollage(ImageCollageOptions options)
  25. {
  26. throw new NotImplementedException();
  27. }
  28. public string Name => "Null Image Encoder";
  29. public bool SupportsImageCollageCreation => false;
  30. public bool SupportsImageEncoding => false;
  31. public ImageSize GetImageSize(string path)
  32. {
  33. throw new NotImplementedException();
  34. }
  35. }
  36. }