public final function resizeMaxSideTo2( int $newLandscapeWidth, int $newPortraitHeight ) : bool
   {

      if ( $this->isPortrait() )
      {

         // Portrait format

         if ( $newPortraitHeight == $this->_height )
         {
            // No resizing required
            return false;
         }

         if ( $newPortraitHeight < $this->_height )
         {
            // Decrease the current size
            return $this->reduceMaxSideTo2( $newLandscapeWidth, $newPortraitHeight );
         }

         // Expand the current size
         return $this->expandMaxSideTo2( $newLandscapeWidth, $newPortraitHeight );

      }

      // Landscape format

      if ( $newLandscapeWidth == $this->_width )
      {
         // No resizing required
         return false;
      }

      if ( $newPortraitHeight < $this->_width )
      {
         // Decrease the current size
         return $this->reduceMaxSideTo2( $newLandscapeWidth, $newPortraitHeight );
      }

      // Expand the current size
      return $this->expandMaxSideTo2( $newLandscapeWidth, $newPortraitHeight );

   }