NullImageEncoder.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. {
  10. get
  11. {
  12. return new[]
  13. {
  14. "png",
  15. "jpeg",
  16. "jpg"
  17. };
  18. }
  19. }
  20. public ImageFormat[] SupportedOutputFormats
  21. {
  22. get
  23. {
  24. return new[] { ImageFormat.Jpg, ImageFormat.Png };
  25. }
  26. }
  27. public void CropWhiteSpace(string inputPath, string outputPath)
  28. {
  29. throw new NotImplementedException();
  30. }
  31. public void EncodeImage(string inputPath, string outputPath, bool autoOrient, int width, int height, int quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat)
  32. {
  33. throw new NotImplementedException();
  34. }
  35. public void CreateImageCollage(ImageCollageOptions options)
  36. {
  37. throw new NotImplementedException();
  38. }
  39. public string Name
  40. {
  41. get { return "Null Image Encoder"; }
  42. }
  43. public bool SupportsImageCollageCreation
  44. {
  45. get { return false; }
  46. }
  47. public bool SupportsImageEncoding
  48. {
  49. get { return false; }
  50. }
  51. public void Dispose()
  52. {
  53. }
  54. }
  55. }