mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 23:19:30 -06:00
21 lines
587 B
C#
21 lines
587 B
C#
namespace FileFlows.ImageNodes.Images;
|
|
|
|
public class ImageIsLandscape: ImageBaseNode
|
|
{
|
|
public override int Inputs => 1;
|
|
public override int Outputs => 2;
|
|
public override FlowElementType Type => FlowElementType.Logic;
|
|
public override string Icon => "fas fa-image";
|
|
|
|
public override string HelpUrl => "https://fileflows.com/docs/plugins/image-nodes/image-is-landscape";
|
|
|
|
|
|
public override int Execute(NodeParameters args)
|
|
{
|
|
var img = GetImageInfo(args);
|
|
if (img == null)
|
|
return -1;
|
|
return img.IsLandscape ? 1 : 2;
|
|
}
|
|
}
|