<?php
namespace FluidTYPO3\Vhs\ViewHelpers\Media\Image;

/*
 * This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
 *
 * For the full copyright and license information, please read the
 * LICENSE.md file that was distributed with this source code.
 */

/**
 * Returns the height of the provided image file in pixels.
 */
class HeightViewHelper extends AbstractImageInfoViewHelper
{
    /**
     * @return int
     */
    public function render()
    {
        $info = $this->getInfo();
        return $info['height'] ?? 0;
    }
}
