Function Repository Resource:

ImagePortraitQ

Source Notebook

Test if the image is in portrait mode (or not)

Contributed by: Arnoud Buzing

ResourceFunction["ImagePortraitQ"][img]

tests if img is in portrait mode.

Examples

Basic Examples (2) 

This image is in portrait orientation:

In[1]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/ee85b6b9-62ed-4a4d-9852-2ab46d8d9371"]
Out[1]=

This image is not in portrait orientation:

In[2]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/3b20d3ec-6b88-4547-bde9-f025c0165498"]
Out[2]=

Scope (2) 

Retrieve the ResourceFunction:

In[3]:=
ResourceFunction["ImagePortraitQ"]
Out[3]=

Retrieve the ResourceObject:

In[4]:=
ResourceObject["ImagePortraitQ"]
Out[4]=

Publisher

Arnoud Buzing

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 05 September 2018

License Information