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/901a4b68-5b9d-41a2-8187-89e8ac62efbb"]
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/47b7f6c3-9512-4e8e-9c95-001c99e5eb39"]
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