Lines Matching defs:height

11  * width, height, ...)
74 // no height ok
93 * with or height are requested
157 throw new ExceptionBadArgument("The height value ($requestedHeight) is not a valid integer", FetcherImage::CANONICAL, 0, $e);
186 * For a raster image, the internal height
198 * https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
202 * It's needed for an img tag to set the img `width` and `height` that pass the
217 * https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
221 * It's needed for an img tag to set the img `width` and `height` that pass the
236 * or if the width and height were specified.
239 * https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
243 * It's needed for an img tag to set the img `width` and `height` that pass the
256 * Note: requested weight and width throw a `not found` if width / height == 0
266 * Giving width and height, check that the aspect ratio is the same
268 * @param $height
272 function checkLogicalRatioAgainstTargetRatio($width, $height)
275 * Check of height and width dimension
280 * https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
289 $height * $targetRatio >= $width - 1
291 $height * $targetRatio <= $width + 1
295 $width / $targetRatio >= $height - 1
297 $width / $targetRatio <= $height + 1
303 $imgTagRatio = $width / $height;
304 LogUtility::msg("Internal Error: The width ($width) and height ($height) calculated for the image ($this) does not pass the ratio test. They have a ratio of ($imgTagRatio) while the target dimension ratio is ($targetRatio)");
312 * The logical height is the calculated height of the target image
316 * * with `200`, the target image has a {@link FetcherTraitImage::getTargetWidth() logical width} of 200 and a {@link FetcherTraitImage::getTargetHeight() logical height} that is scaled down by the {@link FetcherTraitImage::getIntrinsicAspectRatio() instrinsic ratio}
317 * * with ''0x20'', the target image has a {@link FetcherTraitImage::getTargetHeight() logical height} of 20 and a {@link FetcherTraitImage::getTargetWidth() logical width} that is scaled down by the {@link FetcherTraitImage::getIntrinsicAspectRatio() instrinsic ratio}
330 // no height
368 * * with `200`, the target image has a {@link FetcherTraitImage::getTargetWidth() logical width} of 200 and a {@link FetcherTraitImage::getTargetHeight() logical height} that is scaled down by the {@link FetcherTraitImage::getIntrinsicAspectRatio() instrinsic ratio}
369 * * with ''0x20'', the target image has a {@link FetcherTraitImage::getTargetHeight() logical height} of 20 and a {@link FetcherTraitImage::getTargetWidth() logical width} that is scaled down by the {@link FetcherTraitImage::getIntrinsicAspectRatio() instrinsic ratio}
387 $height = $this->getRequestedHeight();
393 return self::round($ratio * $height);
395 // no requested height
431 * @throws ExceptionNotFound - if no requested height was asked
446 * The fetch.php file takes int as value for width and height
448 * This is important because the security token is based on width and height
455 * https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
466 * Return the width and height of the image
484 * Cropping by height