private string GetName(IImageProcessor processor, int index) { if (processor == null) { return("Original"); } return($"{processor.GetType().Name}[{index}]"); }
public ImageProcessService() { Instance = this; if (UseImageSharp) { processor = new ImageSharpProcessor(); } else { processor = new SkiaSharpProcessor(); } Logging.Log($"Initialised {processor.GetType().Name} for thumbnail processing."); }