NullImageEncoder.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, 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 ImageSize GetImageSize(string path)
  52. {
  53. throw new NotImplementedException();
  54. }
  55. }
  56. }