namespace FileFlows.ImageNodes.Images; using FileFlows.Plugin; public class ImageFile : ImageBaseNode { public override int Outputs => 1; public override FlowElementType Type => FlowElementType.Input; public override string Icon => "fas fa-file-image"; private Dictionary _Variables; public override Dictionary Variables => _Variables; public ImageFile() { _Variables = new Dictionary() { { "img.Width", 1920 }, { "img.Heigh", 1080 }, { "img.Format", "PNG" }, { "img.IsPortrait", true }, { "img.IsLandscape", false } }; } public override int Execute(NodeParameters args) { try { UpdateImageInfo(args, this.Variables); return 1; } catch (Exception ex) { args.Logger?.ELog("Failed processing MusicFile: " + ex.Message); return -1; } } }