mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
Added image output format param
This commit is contained in:
46
MediaBrowser.Controller/Drawing/ImageProcessingOptions.cs
Normal file
46
MediaBrowser.Controller/Drawing/ImageProcessingOptions.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Controller.Drawing
|
||||
{
|
||||
public class ImageProcessingOptions
|
||||
{
|
||||
public BaseItem Item { get; set; }
|
||||
|
||||
public ImageType ImageType { get; set; }
|
||||
|
||||
public int ImageIndex { get; set; }
|
||||
|
||||
public string OriginalImagePath { get; set; }
|
||||
|
||||
public DateTime OriginalImageDateModified { get; set; }
|
||||
|
||||
public bool CropWhiteSpace { get; set; }
|
||||
|
||||
public int? Width { get; set; }
|
||||
|
||||
public int? Height { get; set; }
|
||||
|
||||
public int? MaxWidth { get; set; }
|
||||
|
||||
public int? MaxHeight { get; set; }
|
||||
|
||||
public int? Quality { get; set; }
|
||||
|
||||
public List<IImageEnhancer> Enhancers { get; set; }
|
||||
|
||||
public ImageOutputFormat OutputFormat { get; set; }
|
||||
}
|
||||
|
||||
public enum ImageOutputFormat
|
||||
{
|
||||
Original,
|
||||
Bmp,
|
||||
Gif,
|
||||
Jpg,
|
||||
Png
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user